Base class for an actor publishing events. Concrete subclasses must implement receiveEvent which becomes part of
the initial behavior, i.e. gets called by the provided receive implementation. Typically receiveEvent would
be implemented simply be invoking onEvent which fist appends the received event (message) to the buffer which
is limited by the bufferSize parameter and then publishes the buffered events up to the total demand if this
publisher is active. ActorPublisherMessage.Request is handled by publishing the buffered events up to the requested
demand and other ActorPublisherMessages (e.g. Cancel) stop this actor.
Base class for an actor publishing events. Concrete subclasses must implement receiveEvent which becomes part of the initial behavior, i.e. gets called by the provided receive implementation. Typically
receiveEvent
would be implemented simply be invoking onEvent which fist appends the received event (message) to the buffer which is limited by thebufferSize
parameter and then publishes the buffered events up to the total demand if this publisher is active.ActorPublisherMessage.Request
is handled by publishing the buffered events up to the requested demand and otherActorPublisherMessage
s (e.g.Cancel
) stop this actor.