Stream |
Information |
A Stream supports the flow of objects over the time. This abstract class is root of all streams.
This class and its children are for system purpose and should not be used directly. The user only uses the In stream or Out stream views provided by the Stream factory (System assembly).
There are 2 ways a Stream can by read:
- By notification of a Consumer. Here the Stream drives the consumption.
- By calling the Get queries. Here the Consumer drives the consumption.
|
Field |
|
The consumer of the flow. |
|
|
|
The type on the elements flowing through the Stream. |
|
|
|
The end of the stream reach. |
|
|
|
Add a Value to the stream. |
|
Get a Value from the stream. |
|
Subscribe to be notified when a new Value is available on the stream. Only one subscriber is allowed since a stream is dedicated to one consumer. The consumer destruction perform the unsubscription. |
Unsubscribe() |
Unsubscribe the current consumer. |
|
|
A Consumer inhibits all Commands except Add and Unsubscribe
|
This constraint ensure one consumption way excludes the other way. |
|