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
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.String |
toString() |
bind, getHead, leftShift, leftShift
public java.lang.String toString()
toString
in class DataflowStreamWriteAdapter<T>
public DataflowReadChannel<T> createReadChannel()