Package org.apache.pekko.pattern
Interface BackoffOnStopOptions
- All Superinterfaces:
ExtendedBackoffOptions<BackoffOnStopOptions>
- All Known Implementing Classes:
BackoffOnStopOptionsImpl
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new BackoffOptions with a defaultSupervisorStrategy.stoppingStrategy.withFinalStopMessage(scala.Function1<Object, 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 org.apache.pekko.pattern.ExtendedBackoffOptions
props, withAutoReset, withHandlerWhileStopped, withManualReset, withMaxNrOfRetries, withReplyWhileStopped, withSupervisorStrategy
-
Method Details
-
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
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.
-