Package org.apache.pekko.actor
Interface LoggingFSM<S,D>
-
- All Superinterfaces:
Actor
,ActorLogging
,FSM<S,D>
,Listeners
- All Known Implementing Classes:
AbstractLoggingFSM
public interface LoggingFSM<S,D> extends FSM<S,D>
Stackable trait forpekko.actor.FSM
which adds a rolling event log and debug logging capabilities (analogous topekko.event.LoggingReceive
).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
Nested classes/interfaces inherited from interface org.apache.pekko.actor.FSM
FSM.$minus$greater$, FSM.CurrentState<S>, FSM.CurrentState$, FSM.Event<D>, FSM.Event$, FSM.Failure, FSM.Failure$, FSM.FixedDelayMode$, FSM.FixedRateMode$, FSM.LogEntry<S,D>, FSM.LogEntry$, FSM.Normal$, FSM.NullFunction$, FSM.Reason, FSM.Shutdown$, FSM.SilentState<S,D>, FSM.SingleMode$, FSM.State<S,D>, FSM.State$, FSM.StateTimeout$, FSM.StopEvent<S,D>, FSM.StopEvent$, FSM.SubscribeTransitionCallBack, FSM.SubscribeTransitionCallBack$, FSM.Timer, FSM.Timer$, FSM.TimerMode, FSM.TransformHelper, FSM.Transition<S>, FSM.Transition$, FSM.UnsubscribeTransitionCallBack, FSM.UnsubscribeTransitionCallBack$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
advance()
boolean
debugEvent()
void
full_$eq(boolean x$1)
scala.collection.immutable.IndexedSeq<FSM.LogEntry<S,D>>
getLog()
Retrieve current rolling log in oldest-first order.int
logDepth()
void
org$apache$pekko$actor$LoggingFSM$_setter_$debugEvent_$eq(boolean x$1)
void
pos_$eq(int x$1)
void
processEvent(FSM.Event<D> event, java.lang.Object source)
void
super$processEvent(FSM.Event<D> event, java.lang.Object source)
-
Methods inherited from interface org.apache.pekko.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, preRestart, preStart, self, sender, supervisorStrategy, unhandled
-
Methods inherited from interface org.apache.pekko.actor.ActorLogging
_log_$eq, log
-
Methods inherited from interface org.apache.pekko.actor.FSM
$minus$greater, applyState, cancelTimer, currentState_$eq, Event, generation_$eq, handleEvent_$eq, handleTransition, initialize, isStateTimerActive, isTimerActive, logTermination, makeTransition, nextState_$eq, nextStateData, onTermination, onTransition, org$apache$pekko$actor$FSM$_setter_$Event_$eq, org$apache$pekko$actor$FSM$_setter_$StateTimeout_$eq, org$apache$pekko$actor$FSM$_setter_$StopEvent_$eq, postStop, processMsg, receive, register, setStateTimeout, setTimer, setTimer$default$4, startSingleTimer, startTimer, startTimerAtFixedRate, startTimerWithFixedDelay, startWith, startWith$default$3, stateData, stateName, StateTimeout, stay, stop, stop, stop, StopEvent, super$postStop, terminate, terminateEvent_$eq, timeoutFuture_$eq, total2pf, transform, transitionEvent_$eq, when, when$default$2, whenUnhandled
-
Methods inherited from interface org.apache.pekko.routing.Listeners
gossip, gossip$default$2, listenerManagement, listeners, org$apache$pekko$routing$Listeners$_setter_$listeners_$eq
-
-
-
-
Method Detail
-
advance
void advance()
-
debugEvent
boolean debugEvent()
- Specified by:
debugEvent
in interfaceFSM<S,D>
-
full_$eq
void full_$eq(boolean x$1)
-
getLog
scala.collection.immutable.IndexedSeq<FSM.LogEntry<S,D>> getLog()
Retrieve current rolling log in oldest-first order. The log is filled with each incoming event before processing by the user supplied state handler. The log entries are lost when this actor is restarted.
-
logDepth
int logDepth()
-
org$apache$pekko$actor$LoggingFSM$_setter_$debugEvent_$eq
void org$apache$pekko$actor$LoggingFSM$_setter_$debugEvent_$eq(boolean x$1)
-
pos_$eq
void pos_$eq(int x$1)
-
processEvent
void processEvent(FSM.Event<D> event, java.lang.Object source)
- Specified by:
processEvent
in interfaceFSM<S,D>
-
-