package scaladsl
- Alphabetic
- Public
- Protected
Type Members
- abstract class ActorHandler[Envelope, T] extends Handler[Envelope] with ActorHandlerInit[T]
This Handler gives support for spawning an actor of a given
Behavior
to delegate processing of the envelopes to the actor.This Handler gives support for spawning an actor of a given
Behavior
to delegate processing of the envelopes to the actor.The lifecycle of the actor is managed by the
Projection
. Thebehavior
is spawned when theProjection
is started and theActorRef
is passed in as a parameter to theprocess
method. The Actor is stopped when theProjection
is stopped.- Annotations
- @ApiMayChange()
- trait AtLeastOnceFlowProjection[Offset, Envelope] extends Projection[Envelope]
- Annotations
- @DoNotInherit()
- trait AtLeastOnceProjection[Offset, Envelope] extends Projection[Envelope]
- Annotations
- @DoNotInherit()
- trait AtMostOnceProjection[Offset, Envelope] extends Projection[Envelope]
- Annotations
- @DoNotInherit()
- trait ExactlyOnceProjection[Offset, Envelope] extends Projection[Envelope]
- Annotations
- @DoNotInherit()
- trait GroupedProjection[Offset, Envelope] extends Projection[Envelope]
- Annotations
- @DoNotInherit()
- trait Handler[Envelope] extends HandlerLifecycle
Implement this interface for the Envelope handler in the
Projection
.Implement this interface for the Envelope handler in the
Projection
. Some projections may have more specific handler types.It can be stateful, with variables and mutable data structures. It is invoked by the
Projection
machinery one envelope at a time and visibility guarantees between the invocations are handled automatically, i.e. no volatile or other concurrency primitives are needed for managing the state.Supported error handling strategies for when processing an
Envelope
fails can be defined in configuration or using thewithRecoveryStrategy
method of aProjection
implementation.- Annotations
- @ApiMayChange()
- trait HandlerLifecycle extends AnyRef
- Annotations
- @ApiMayChange()
- trait MergeableOffsetSourceProvider[Offset <: MergeableOffset[_], Envelope] extends SourceProvider[Offset, Envelope]
- Annotations
- @ApiMayChange()
- class ProjectionManagement extends Extension
- Annotations
- @ApiMayChange()
- trait SourceProvider[Offset, Envelope] extends AnyRef
- Annotations
- @ApiMayChange()
- abstract class StatefulHandler[State, Envelope] extends Handler[Envelope]
- Annotations
- @ApiMayChange()
- trait VerifiableSourceProvider[Offset, Envelope] extends SourceProvider[Offset, Envelope]
- Annotations
- @ApiMayChange()
Value Members
- object Handler
- Annotations
- @ApiMayChange()
- object ProjectionManagement extends ExtensionId[ProjectionManagement]
- Annotations
- @ApiMayChange()