com.rbmhtechnology.eventuate

DurableEvent

case class DurableEvent(payload: Any, systemTimestamp: Long, vectorTimestamp: VectorTime, emitterId: String, emitterAggregateId: Option[String] = None, customDestinationAggregateIds: Set[String] = Set(), sourceLogReadPosition: Long = 0L, sourceLogId: String = UndefinedLogId, targetLogId: String = UndefinedLogId, sourceLogSequenceNr: Long = UndefinedSequenceNr, targetLogSequenceNr: Long = UndefinedSequenceNr) extends Product with Serializable

Provider API.

Event storage format.

payload

Custom, application-defined event.

systemTimestamp

Wall-clock timestamp, generated by emitter (EventsourcedActor).

vectorTimestamp

Vector timestamp, generated by emitter (EventsourcedActor).

emitterId

Id of emitter (EventsourcedActor).

emitterAggregateId

Aggregate id of emitter (EventsourcedActor). This is also the default routing destination of this event. If defined, the event is routed to event-sourced actors or views with a matching aggregateId. In any case, the event is routed to event-sourced actors and views with an undefined aggregateId.

customDestinationAggregateIds

Aggregate ids of additional, custom routing destinations. If non-empty, the event is additionally routed to event-sourced actors and views with a matching aggregateId.

sourceLogReadPosition

Highest source log read position from last replication.

sourceLogId

Source log id from last replication. Equal to targetLogId if not replicated yet.

targetLogId

Target log id from last replication.

sourceLogSequenceNr

Source log sequence number from last replication.

targetLogSequenceNr

Target log sequence number.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DurableEvent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DurableEvent(payload: Any, systemTimestamp: Long, vectorTimestamp: VectorTime, emitterId: String, emitterAggregateId: Option[String] = None, customDestinationAggregateIds: Set[String] = Set(), sourceLogReadPosition: Long = 0L, sourceLogId: String = UndefinedLogId, targetLogId: String = UndefinedLogId, sourceLogSequenceNr: Long = UndefinedSequenceNr, targetLogSequenceNr: Long = UndefinedSequenceNr)

    payload

    Custom, application-defined event.

    systemTimestamp

    Wall-clock timestamp, generated by emitter (EventsourcedActor).

    vectorTimestamp

    Vector timestamp, generated by emitter (EventsourcedActor).

    emitterId

    Id of emitter (EventsourcedActor).

    emitterAggregateId

    Aggregate id of emitter (EventsourcedActor). This is also the default routing destination of this event. If defined, the event is routed to event-sourced actors or views with a matching aggregateId. In any case, the event is routed to event-sourced actors and views with an undefined aggregateId.

    customDestinationAggregateIds

    Aggregate ids of additional, custom routing destinations. If non-empty, the event is additionally routed to event-sourced actors and views with a matching aggregateId.

    sourceLogReadPosition

    Highest source log read position from last replication.

    sourceLogId

    Source log id from last replication. Equal to targetLogId if not replicated yet.

    targetLogId

    Target log id from last replication.

    sourceLogSequenceNr

    Source log sequence number from last replication.

    targetLogSequenceNr

    Target log sequence number.

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val customDestinationAggregateIds: Set[String]

    Aggregate ids of additional, custom routing destinations.

    Aggregate ids of additional, custom routing destinations. If non-empty, the event is additionally routed to event-sourced actors and views with a matching aggregateId.

  7. def defaultDestinationAggregateId: Option[String]

    The default routing destination of this event is its emitterAggregateId.

    The default routing destination of this event is its emitterAggregateId. If defined, the event is routed to event-sourced actors and views with a matching aggregateId. In any case, the event is routed to event-sourced actors and views with an undefined aggregateId.

  8. def destinationAggregateIds: Set[String]

    The union of defaultDestinationAggregateId and customDestinationAggregateIds.

  9. def emitter(id: String): Boolean

    Returns true if this event was emitted by an emitter with given id.

    Returns true if this event was emitted by an emitter with given id.

    See also

    EventsourcedActor

  10. val emitterAggregateId: Option[String]

    Aggregate id of emitter (EventsourcedActor).

    Aggregate id of emitter (EventsourcedActor). This is also the default routing destination of this event. If defined, the event is routed to event-sourced actors or views with a matching aggregateId. In any case, the event is routed to event-sourced actors and views with an undefined aggregateId.

  11. val emitterId: String

    Id of emitter (EventsourcedActor).

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  19. val payload: Any

    Custom, application-defined event.

  20. def replicated: Boolean

    true if this is a replicated event.

  21. def sequenceNr: Long

    Local sequence number (= targetLogSequenceNr).

  22. val sourceLogId: String

    Source log id from last replication.

    Source log id from last replication. Equal to targetLogId if not replicated yet.

  23. val sourceLogReadPosition: Long

    Highest source log read position from last replication.

  24. val sourceLogSequenceNr: Long

    Source log sequence number from last replication.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. val systemTimestamp: Long

    Wall-clock timestamp, generated by emitter (EventsourcedActor).

  27. val targetLogId: String

    Target log id from last replication.

  28. val targetLogSequenceNr: Long

    Target log sequence number.

  29. val vectorTimestamp: VectorTime

    Vector timestamp, generated by emitter (EventsourcedActor).

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped