org.eligosource.eventsourced.journal.common.support

SynchronousWriteReplaySupport

trait SynchronousWriteReplaySupport extends Actor

Linear Supertypes
Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SynchronousWriteReplaySupport
  2. Actor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Abstract Value Members

  1. abstract def executeBatchReplayInMsgs(cmds: Seq[ReplayInMsgs], p: (Message, ActorRef) ⇒ Unit): Unit

    Instructs a journal provider to batch-replay input messages.

    Instructs a journal provider to batch-replay input messages.

    cmds

    command batch to be executed by the journal provider.

    p

    function to be called by the provider for every replayed input message. The acks field of a replayed input message must contain the channel ids of all acknowledgements for that input message. The replay target of the currently processed org.eligosource.eventsourced.core.JournalProtocol.ReplayInMsgs command must be passed as second argument.

    See also

    org.eligosource.eventsourced.core.EventsourcingExtension

    org.eligosource.eventsourced.core.JournalProtocol.WriteAck

  2. abstract def executeDeleteOutMsg(cmd: DeleteOutMsg): Unit

    Instructs a journal provider to delete an output message.

    Instructs a journal provider to delete an output message.

    cmd

    command to be executed by the journal provider.

    See also

    org.eligosource.eventsourced.core.ReliableChannel

    org.eligosource.eventsourced.core.JournalProtocol.DeleteOutMsg

  3. abstract def executeReplayInMsgs(cmd: ReplayInMsgs, p: (Message) ⇒ Unit): Unit

    Instructs a journal provider to replay input messages.

    Instructs a journal provider to replay input messages.

    cmd

    command to be executed by the journal provider.

    p

    function to be called by the provider for each replayed input message. The acks field of a replayed input message must contain the channel ids of all acknowledgements for that input message.

    See also

    org.eligosource.eventsourced.core.EventsourcingExtension

    org.eligosource.eventsourced.core.JournalProtocol.WriteAck

  4. abstract def executeReplayOutMsgs(cmd: ReplayOutMsgs, p: (Message) ⇒ Unit): Unit

    Instructs a journal provider to replay output messages.

    Instructs a journal provider to replay output messages.

    cmd

    command to be executed by the journal provider.

    p

    function to be called by the provider for each replayed output message.

    See also

    org.eligosource.eventsourced.core.EventsourcingExtension

  5. abstract def executeWriteAck(cmd: WriteAck): Unit

    Instructs a journal provider to write an acknowledgement.

    Instructs a journal provider to write an acknowledgement.

    cmd

    command to be executed by the journal provider.

    See also

    org.eligosource.eventsourced.core.ReliableChannel

    org.eligosource.eventsourced.core.DefaultChannel

    org.eligosource.eventsourced.core.JournalProtocol.WriteAck

  6. abstract def executeWriteInMsg(cmd: WriteInMsg): Unit

    Instructs a journal provider to write an input message.

    Instructs a journal provider to write an input message.

    cmd

    command to be executed by the journal provider.

    See also

    org.eligosource.eventsourced.core.JournalProtocol.WriteInMsg

  7. abstract def executeWriteOutMsg(cmd: WriteOutMsg): Unit

    Instructs a journal provider to write an output message, optionally together with an acknowledgement.

    Instructs a journal provider to write an output message, optionally together with an acknowledgement.

    cmd

    command to be executed by the journal provider.

    See also

    org.eligosource.eventsourced.core.JournalProtocol.WriteInMsg

  8. abstract def loadSnapshotSync(processorId: Int, snapshotFilter: (SnapshotMetadata) ⇒ Boolean): Option[Snapshot]

    Loads the latest snapshot for specified processor whose metadata match predicate p.

    Loads the latest snapshot for specified processor whose metadata match predicate p.

    processorId

    processor id of the snapshot.

    snapshotFilter

    predicate for selecting saved snapshots.

    returns

    youngest snapshots of those selected by p, if any.

  9. abstract def saveSnapshot(snapshot: Snapshot): Future[SnapshotSaved]

    Saves a snapshot asynchronously.

    Saves a snapshot asynchronously.

    snapshot

    a snapshot.

    returns

    a future that is completed when the snapshot has been successfully saved.

  10. abstract def snapshotSaved(metadata: SnapshotMetadata): Unit

    Called when a snapshot has been successfully saved.

    Called when a snapshot has been successfully saved.

    metadata

    snapshot metadata.

  11. abstract def storedCounter: Long

    Returns the last stored counter value.

    Returns the last stored counter value.

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Definition Classes
    Actor
  9. def counter: Long

    Returns the current counter value.

    Returns the current counter value.

    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  15. def initialCounter: Long

    Returns the initial counter value after journal start.

  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  20. def postRestart(reason: Throwable): Unit

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

    Calls stop().

    Calls stop().

    Definition Classes
    SynchronousWriteReplaySupport → Actor
  22. def preRestart(reason: Throwable, message: Option[Any]): Unit

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

    Initializes the counter from the last stored counter value and calls start().

    Initializes the counter from the last stored counter value and calls start().

    Definition Classes
    SynchronousWriteReplaySupport → Actor
  24. def receive: PartialFunction[Any, Unit]

    Definition Classes
    SynchronousWriteReplaySupport → Actor
  25. implicit final val self: ActorRef

    Definition Classes
    Actor
  26. final def sender: ActorRef

    Definition Classes
    Actor
  27. def start(): Unit

    Start callback.

    Start callback. Empty default implementation.

    Attributes
    protected
  28. def stop(): Unit

    Stop callback.

    Stop callback. Empty default implementation.

    Attributes
    protected
  29. def supervisorStrategy: SupervisorStrategy

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

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. def unhandled(message: Any): Unit

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped