akka.actor
Interface UnrestrictedStash
- All Superinterfaces:
- Actor, StashSupport
- All Known Subinterfaces:
- Creators.ActWithStash, Stash, UnboundedStash
- All Known Implementing Classes:
- AbstractActorWithStash, AbstractActorWithUnboundedStash, AbstractActorWithUnrestrictedStash, UntypedActorWithStash, UntypedActorWithUnboundedStash, UntypedActorWithUnrestrictedStash
public interface UnrestrictedStash
- extends Actor, StashSupport
A version of Stash that does not enforce any mailbox type. The proper mailbox has to be configured
manually, and the mailbox should extend the DequeBasedMessageQueueSemantics marker trait.
|
Method Summary |
void |
postStop()
Overridden callback. |
void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
Overridden callback. |
| Methods inherited from interface akka.actor.Actor |
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, preStart, receive, self, sender, supervisorStrategy, unhandled |
| Methods inherited from interface akka.actor.StashSupport |
actorCell, capacity, clearStash, context, enqueueFirst, mailbox, prepend, self, stash, theStash, unstash, unstashAll, unstashAll |
preRestart
void preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
- Overridden callback. Prepends all messages in the stash to the mailbox,
clears the stash, stops all children and invokes the postStop() callback.
- Specified by:
preRestart in interface Actor
- Parameters:
reason - (undocumented)message - (undocumented)
postStop
void postStop()
- Overridden callback. Prepends all messages in the stash to the mailbox and clears the stash.
Must be called when overriding this method, otherwise stashed messages won't be propagated to DeadLetters
when actor stops.
- Specified by:
postStop in interface Actor