o

akka.persistence.typed.javadsl

ReplicatedEventSourcing

object ReplicatedEventSourcing

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedEventSourcing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. def commonJournalConfig[Command, Event, State](replicationId: ReplicationId, allReplicaIds: Set[ReplicaId], queryPluginId: String, behaviorFactory: Function[ReplicationContext, EventSourcedBehavior[Command, Event, State]]): EventSourcedBehavior[Command, Event, State]

    Initialize a replicated event sourced behavior where all entity replicas are share the same journal configuration.

    Initialize a replicated event sourced behavior where all entity replicas are share the same journal configuration. This is typical if there is a shared database and no replica specific configuration is required.

    Events from each replica for the same entityId will be replicated to every copy. Care must be taken to handle events in any order as events can happen concurrently at different replicas.

    Using an replicated event sourced behavior means there is no longer the single writer guarantee.

    A different journal plugin id can be configured using withJournalPluginId after creation. Different databases can be used for each replica. The events from other replicas are read using PersistentQuery.

    queryPluginId

    A single query plugin used to read the events from other replicas. Must be the query side of your configured journal plugin.

  7. def commonJournalConfigForEventSourcedOnCommandBehavior[Command, Event, State](replicationId: ReplicationId, allReplicaIds: Set[ReplicaId], queryPluginId: String, behaviorFactory: Function[ReplicationContext, EventSourcedOnCommandBehavior[Command, Event, State]]): EventSourcedOnCommandBehavior[Command, Event, State]

    Initialize a replicated event sourced behavior where all entity replicas are share the same journal configuration.

    Initialize a replicated event sourced behavior where all entity replicas are share the same journal configuration. This is typical if there is a shared database and no replica specific configuration is required.

    Events from each replica for the same entityId will be replicated to every copy. Care must be taken to handle events in any order as events can happen concurrently at different replicas.

    Using an replicated event sourced behavior means there is no longer the single writer guarantee.

    A different journal plugin id can be configured using withJournalPluginId after creation. Different databases can be used for each replica. The events from other replicas are read using PersistentQuery.

    queryPluginId

    A single query plugin used to read the events from other replicas. Must be the query side of your configured journal plugin.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def perReplicaJournalConfig[Command, Event, State](replicationId: ReplicationId, allReplicasAndQueryPlugins: Map[ReplicaId, String], eventSourcedBehaviorFactory: Function[ReplicationContext, EventSourcedBehavior[Command, Event, State]]): EventSourcedBehavior[Command, Event, State]

    Initialize a replicated event sourced behavior where each journal has different journal configuration e.g.

    Initialize a replicated event sourced behavior where each journal has different journal configuration e.g. each replica uses a different database or requires different database configuration for a shared database.

    Events from each replica for the same entityId will be replicated to every copy. Care must be taken to handle events in any order as events can happen concurrently at different replicas.

    Using an replicated event sourced behavior means there is no longer the single writer guarantee.

    The journal plugin id for the entity itself can be configured using withJournalPluginId after creation. A query side identifier is passed per replica allowing for separate database/journal configuration per replica. The events from other replicas are read using PersistentQuery.

    allReplicasAndQueryPlugins

    All replica ids and a query plugin per replica id. These need to be known to receive events from all replicas and configured with the query plugin for the journal that each replica uses.

  17. def perReplicaJournalConfigForEventSourcedOnCommandBehavior[Command, Event, State](replicationId: ReplicationId, allReplicasAndQueryPlugins: Map[ReplicaId, String], eventSourcedBehaviorFactory: Function[ReplicationContext, EventSourcedOnCommandBehavior[Command, Event, State]]): EventSourcedOnCommandBehavior[Command, Event, State]

    Initialize a replicated event sourced behavior where each journal has different journal configuration e.g.

    Initialize a replicated event sourced behavior where each journal has different journal configuration e.g. each replica uses a different database or requires different database configuration for a shared database.

    Events from each replica for the same entityId will be replicated to every copy. Care must be taken to handle events in any order as events can happen concurrently at different replicas.

    Using an replicated event sourced behavior means there is no longer the single writer guarantee.

    The journal plugin id for the entity itself can be configured using withJournalPluginId after creation. A query side identifier is passed per replica allowing for separate database/journal configuration per replica. The events from other replicas are read using PersistentQuery.

    allReplicasAndQueryPlugins

    All replica ids and a query plugin per replica id. These need to be known to receive events from all replicas and configured with the query plugin for the journal that each replica uses.

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped