T - The type of messages to pass through the streampublic final class DataflowBroadcast<T> extends DataflowStreamWriteAdapter<T>
Typical use:
DataflowWriteChannel broadcastStream = new DataflowBroadcast() DataflowReadChannel stream1 = broadcastStream.createReadChannel() DataflowReadChannel stream2 = broadcastStream.createReadChannel() broadcastStream << 'Message' assert stream1.val == stream2.val
serialHandle| Constructor and Description |
|---|
DataflowBroadcast()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
DataflowReadChannel<T> |
createReadChannel()
Retrieves an implementation of DataflowReadChannel to read all messages submitted to the broadcast chanel.
|
java.lang.Class<RemoteDataflowBroadcast> |
getRemoteClass()
Class of remote object to be created
|
java.lang.String |
toString() |
bind, getHead, leftShift, leftShiftcreateRemoteHandle, getOrCreateSerialHandle, writeReplacepublic java.lang.String toString()
toString in class DataflowStreamWriteAdapter<T>public DataflowReadChannel<T> createReadChannel()
public java.lang.Class<RemoteDataflowBroadcast> getRemoteClass()
WithSerialIdgetRemoteClass in class WithSerialId