Package akka.pattern
Interface BackoffOnStopOptions
-
- All Superinterfaces:
ExtendedBackoffOptions<BackoffOnStopOptions>
- All Known Implementing Classes:
BackoffOnStopOptionsImpl
public interface BackoffOnStopOptions extends ExtendedBackoffOptions<BackoffOnStopOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BackoffOnStopOptions
withDefaultStoppingStrategy()
Returns a new BackoffOptions with a defaultSupervisorStrategy.stoppingStrategy
.BackoffOnStopOptions
withFinalStopMessage(scala.Function1<java.lang.Object,java.lang.Object> isFinalStopMessage)
Predicate evaluated for each message, if it returns true and the supervised actor is stopped then the supervisor will stop its self.-
Methods inherited from interface akka.pattern.ExtendedBackoffOptions
props, withAutoReset, withHandlerWhileStopped, withManualReset, withMaxNrOfRetries, withReplyWhileStopped, withSupervisorStrategy
-
-
-
-
Method Detail
-
withDefaultStoppingStrategy
BackoffOnStopOptions withDefaultStoppingStrategy()
Returns a new BackoffOptions with a defaultSupervisorStrategy.stoppingStrategy
. The default supervisor strategy is used as fallback for throwables not handled bySupervisorStrategy.stoppingStrategy
.
-
withFinalStopMessage
BackoffOnStopOptions withFinalStopMessage(scala.Function1<java.lang.Object,java.lang.Object> isFinalStopMessage)
Predicate evaluated for each message, if it returns true and the supervised actor is stopped then the supervisor will stop its self. If it returns true while the supervised actor is running then it will be forwarded to the supervised actor and when the supervised actor stops its self the supervisor will stop its self.
-
-