BroadcastFactory¶
BroadcastFactory is an abstraction of broadcast variable factories that BroadcastManager uses to create or delete (unbroadcast) broadcast variables.
Contract¶
Initializing¶
Procedure
initialize is a procedure (returns Unit) so what happens inside stays inside (paraphrasing the former advertising slogan of Las Vegas, Nevada).
See:
Used when:
BroadcastManageris requested to initialize
Creating Broadcast Variable¶
newBroadcast[T: ClassTag](
value: T,
isLocal: Boolean,
id: Long,
serializedOnly: Boolean = false): Broadcast[T]
See:
Used when:
BroadcastManageris requested for a new broadcast variable
Stopping¶
Procedure
stop is a procedure (returns Unit) so what happens inside stays inside (paraphrasing the former advertising slogan of Las Vegas, Nevada).
See:
Used when:
BroadcastManageris requested to stop
Deleting Broadcast Variable¶
Procedure
unbroadcast is a procedure (returns Unit) so what happens inside stays inside (paraphrasing the former advertising slogan of Las Vegas, Nevada).
See:
Used when:
BroadcastManageris requested to delete a broadcast variable (unbroadcast)