de.heikoseeberger.akkasse

EventPublisher

Related Doc: package akkasse

abstract class EventPublisher[A] extends ActorPublisher[A]

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.

Linear Supertypes
ActorPublisher[A], Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventPublisher
  2. ActorPublisher
  3. Actor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventPublisher(bufferSize: Int)

    bufferSize

    the maximum number of events (messages) to be buffered

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Abstract Value Members

  1. abstract def receiveEvent: Receive

    To be implemented by invoking onEvent.

    To be implemented by invoking onEvent.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    ActorPublisher → Actor
  5. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    ActorPublisher → Actor
  6. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    ActorPublisher → Actor
  7. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    ActorPublisher → Actor
  8. def aroundReceive(receive: Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    ActorPublisher → Actor
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. implicit val context: ActorContext

    Definition Classes
    Actor
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isActive: Boolean

    Definition Classes
    ActorPublisher
  18. final def isCanceled: Boolean

    Definition Classes
    ActorPublisher
  19. final def isCompleted: Boolean

    Definition Classes
    ActorPublisher
  20. final def isErrorEmitted: Boolean

    Definition Classes
    ActorPublisher
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def onComplete(): Unit

    Definition Classes
    ActorPublisher
  26. def onError(cause: Throwable): Unit

    Definition Classes
    ActorPublisher
  27. final def onEvent(event: A): Unit

    To be invoked when an event is received.

    To be invoked when an event is received.

    Attributes
    protected
  28. def onNext(element: A): Unit

    Definition Classes
    ActorPublisher
  29. def postRestart(reason: Throwable): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  30. def postStop(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  31. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. def preStart(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  33. final def receive: PartialFunction[Any, Unit]

    Receive events via onEvent and ActorPublisherMessages.

    Receive events via onEvent and ActorPublisherMessages.

    Definition Classes
    EventPublisher → Actor
  34. implicit final val self: ActorRef

    Definition Classes
    Actor
  35. final def sender(): ActorRef

    Definition Classes
    Actor
  36. def subscriptionTimeout: Duration

    Definition Classes
    ActorPublisher
  37. def supervisorStrategy: SupervisorStrategy

    Definition Classes
    Actor
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def totalDemand: Long

    Definition Classes
    ActorPublisher
  41. def unhandled(message: Any): Unit

    Definition Classes
    Actor
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ActorPublisher[A]

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped