HashMapPublisher
Publisher implementation using a HashMap
of subscribers.
Value members
Concrete methods
Publishes an event into the stream.
Publishes an event into the stream.
Sends the event to all subscribers in the HashMap
.
- Definition Classes
Performs any cleaning up required when the stream is finished.
Performs any cleaning up required when the stream is finished.
Notifies all subscribers that the stream is done and clears the HashMap
to prevent any
further events being delivered.
- Definition Classes
Subscribes an EventHandler to the stream so they can receive events.
Subscribes an EventHandler to the stream so they can receive events.
Adds the subscriber to the HashMap
and calls its onInit
method.
- Definition Classes
Unsubscribes an EventHandler to the stream so they can stop receiving events.
Unsubscribes an EventHandler to the stream so they can stop receiving events.
Removes the subscriber from the HashMap
.
- Definition Classes
Inherited methods
Checks if an event signifies the end of the stream.
Checks if an event signifies the end of the stream.
- Value Params
- e
The event to check.
- Returns
true
if it is a final event.- Inherited from
- Publisher