trait Replication[Command] extends AnyRef
Created using Replication.grpcReplication, which starts sharding with the entity and replication stream consumers but not the replication endpoint needed to publish events to other replication places.
- Command
The type of commands the Replicated Event Sourced Entity accepts Not for user extension
- Annotations
- @DoNotInherit()
- Source
- Replication.scala
- Alphabetic
- By Inheritance
- Replication
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def createSingleServiceHandler(): Function[HttpRequest, CompletionStage[HttpResponse]]
If only replicating one Replicated Event Sourced Entity and not using Akka Projection gRPC this endpoint factory can be used to get a partial function that can be served/bound with an Akka HTTP/2 server
- abstract def entityRefFactory: Function[String, EntityRef[Command]]
Shortcut for creating EntityRefs for the sharded Replicated Event Sourced entities for sending commands.
- abstract def entityTypeKey: EntityTypeKey[Command]
Entity type key for looking up the entities
- abstract def eventProducerPushDestination: Optional[EventProducerPushDestination]
Scala API: Push destinations for accepting/combining multiple Replicated Event Sourced entity types and possibly also regular projections into one producer push destination handler in a set passed to EventProducerPushDestination.grpcServiceHandler to create a single gRPC endpoint.
- abstract def eventProducerSource: EventProducerSource
If combining multiple entity types replicated, or combining with direct usage of Akka Projection gRPC you will have to use the EventProducerService of each of them in a set passed to EventProducer.grpcServiceHandler to create a single gRPC endpoint
- abstract def eventProducerService: EventProducerSource
- Annotations
- @deprecated
- Deprecated
(Since version 1.5.1) Use eventProducerSource instead
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])