de.heikoseeberger.akkasse

stream

package stream

Visibility
  1. Public
  2. All

Type Members

  1. abstract class EventPublisher[A] extends ActorPublisher[A]

    Base class for an actor publishing events.

    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.

Ungrouped