Package akka.persistence.typed.telemetry
Class EmptyDurableStateBehaviorInstrumentation
- java.lang.Object
-
- akka.persistence.typed.telemetry.EmptyDurableStateBehaviorInstrumentation
-
- All Implemented Interfaces:
DurableStateBehaviorInstrumentation
- Direct Known Subclasses:
EmptyDurableStateBehaviorInstrumentation$
public class EmptyDurableStateBehaviorInstrumentation extends java.lang.Object implements DurableStateBehaviorInstrumentation
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description EmptyDurableStateBehaviorInstrumentation()EmptyDurableStateBehaviorInstrumentation(ActorSystem<?> system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactorInitialized(ActorRef<?> actorRef)Initialize state for an EventSourcedBehavior actor.voidafterRequestRecoveryPermit(ActorRef<?> actorRef, java.lang.Object context)Record after a recovery permit is requested.java.lang.ObjectbeforeRequestRecoveryPermit(ActorRef<?> actorRef)Record before a recovery permit is requested.java.lang.ObjectdeleteStateCalled(ActorRef<?> actorRef, java.lang.Object command)Record delete state.scala.collection.immutable.Seq<java.lang.String>dependencies()Optional dependencies for this instrumentation.voidpersistFailed(ActorRef<?> actorRef, java.lang.Throwable throwable, java.lang.Object state, long revision, java.lang.Object context)Record persistence persist failure.java.lang.ObjectpersistStateCalled(ActorRef<?> actorRef, java.lang.Object state, java.lang.Object command)Record persist state.voidpersistStateDone(ActorRef<?> actorRef, java.lang.Object context)Record state is written and the registered callback is called.java.lang.ObjectpersistStateWritten(ActorRef<?> actorRef, java.lang.Object state, java.lang.Object context)Record state is written but the registered callback has not been called yetvoidrecoveryDone(ActorRef<?> actorRef)Record persistence recovery done.voidrecoveryFailed(ActorRef<?> actorRef, java.lang.Throwable throwable)Record persistence recovery failure.voidrecoveryStarted(ActorRef<?> actorRef)Record persistence recovery started.
-
-
-
Constructor Detail
-
EmptyDurableStateBehaviorInstrumentation
public EmptyDurableStateBehaviorInstrumentation()
-
EmptyDurableStateBehaviorInstrumentation
public EmptyDurableStateBehaviorInstrumentation(ActorSystem<?> system)
-
-
Method Detail
-
actorInitialized
public void actorInitialized(ActorRef<?> actorRef)
Description copied from interface:DurableStateBehaviorInstrumentationInitialize state for an EventSourcedBehavior actor.- Specified by:
actorInitializedin interfaceDurableStateBehaviorInstrumentation
-
beforeRequestRecoveryPermit
public java.lang.Object beforeRequestRecoveryPermit(ActorRef<?> actorRef)
Description copied from interface:DurableStateBehaviorInstrumentationRecord before a recovery permit is requested.- Specified by:
beforeRequestRecoveryPermitin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the recovery permit is about to be requested- Returns:
- context that will be passed to
afterRequestRecoveryPermit
-
afterRequestRecoveryPermit
public void afterRequestRecoveryPermit(ActorRef<?> actorRef, java.lang.Object context)
Description copied from interface:DurableStateBehaviorInstrumentationRecord after a recovery permit is requested.- Specified by:
afterRequestRecoveryPermitin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the recovery permit is requestedcontext- returned bybeforeRequestRecoveryPermit
-
recoveryStarted
public void recoveryStarted(ActorRef<?> actorRef)
Description copied from interface:DurableStateBehaviorInstrumentationRecord persistence recovery started.- Specified by:
recoveryStartedin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the recovery is started.
-
recoveryDone
public void recoveryDone(ActorRef<?> actorRef)
Description copied from interface:DurableStateBehaviorInstrumentationRecord persistence recovery done.- Specified by:
recoveryDonein interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the recovery is finished.
-
recoveryFailed
public void recoveryFailed(ActorRef<?> actorRef, java.lang.Throwable throwable)
Description copied from interface:DurableStateBehaviorInstrumentationRecord persistence recovery failure.- Specified by:
recoveryFailedin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the recovery has failed.throwable- the cause of the failure.
-
persistStateCalled
public java.lang.Object persistStateCalled(ActorRef<?> actorRef, java.lang.Object state, java.lang.Object command)
Description copied from interface:DurableStateBehaviorInstrumentationRecord persist state.- Specified by:
persistStateCalledin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the state will be sent to the store.state- the state that was submitted for persistence.command- actor message (command) for which the state update was emitted.- Returns:
- context that will be passed to
persistStateWritten
-
deleteStateCalled
public java.lang.Object deleteStateCalled(ActorRef<?> actorRef, java.lang.Object command)
Description copied from interface:DurableStateBehaviorInstrumentationRecord delete state.- Specified by:
deleteStateCalledin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the delete state will be sent to the store.command- actor message (command) for which the state update was emitted.- Returns:
- context that will be passed to
persistStateWritten
-
persistStateWritten
public java.lang.Object persistStateWritten(ActorRef<?> actorRef, java.lang.Object state, java.lang.Object context)
Description copied from interface:DurableStateBehaviorInstrumentationRecord state is written but the registered callback has not been called yet- Specified by:
persistStateWrittenin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the state has been successfully persisted.state- the state that was stored in the journal.context- context returned bypersistStateCalled- Returns:
- context that will be passed to
persistStateDone
-
persistStateDone
public void persistStateDone(ActorRef<?> actorRef, java.lang.Object context)
Description copied from interface:DurableStateBehaviorInstrumentationRecord state is written and the registered callback is called.- Specified by:
persistStateDonein interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the state has been successfully persisted.context- context returned bypersistStateWritten
-
persistFailed
public void persistFailed(ActorRef<?> actorRef, java.lang.Throwable throwable, java.lang.Object state, long revision, java.lang.Object context)
Description copied from interface:DurableStateBehaviorInstrumentationRecord persistence persist failure.- Specified by:
persistFailedin interfaceDurableStateBehaviorInstrumentation- Parameters:
actorRef- theActorReffor which the recovery has failed.throwable- the cause of the failure.state- the state that was to be persisted.revision- the sequence number associated with the failurecontext- context returned bypersistStateCalled
-
dependencies
public scala.collection.immutable.Seq<java.lang.String> dependencies()
Description copied from interface:DurableStateBehaviorInstrumentationOptional dependencies for this instrumentation.Dependency instrumentations will always be ordered before this instrumentation.
- Specified by:
dependenciesin interfaceDurableStateBehaviorInstrumentation- Returns:
- list of class names for optional instrumentation dependencies
-
-