Package akka.actor
Interface UnrestrictedStash
-
- All Superinterfaces:
Actor,StashSupport
- All Known Subinterfaces:
AbstractPersistentActorLike,AsyncWriteProxy,AtLeastOnceDelivery,AtLeastOnceDeliveryLike,Creators.ActWithStash,Eventsourced,PersistenceStash,PersistentActor,PersistentFSM<S,D,E>,Stash,UnboundedStash
- All Known Implementing Classes:
AbstractActorPublisherWithStash,AbstractActorPublisherWithUnboundedStash,AbstractActorPublisherWithUnrestrictedStash,AbstractActorWithStash,AbstractActorWithUnboundedStash,AbstractActorWithUnrestrictedStash,AbstractFSMWithStash,AbstractPersistentActor,AbstractPersistentActorWithAtLeastOnceDelivery,AbstractPersistentActorWithTimers,AbstractPersistentFSM,AbstractPersistentLoggingFSM,ActorClassificationUnsubscriber,DDataShard,DDataShardCoordinator,DnsClient,JournalPerfSpec.BenchActor,PersistencePluginProxy,PersistentShard,PersistentShardCoordinator,RemoveInternalClusterShardingData.RemoveOnePersistenceId,SharedLeveldbJournal,TcpDnsClient,UntypedActorWithStash,UntypedActorWithUnboundedStash,UntypedActorWithUnrestrictedStash,UntypedPersistentActor,UntypedPersistentActorWithAtLeastOnceDelivery
public interface UnrestrictedStash extends Actor, StashSupport
Overridden callback. Prepends all messages in the stash to the mailbox, clears the stash, stops all children and invokes the postStop() callback.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostStop()Overridden callback.voidpreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)Overridden callback.voidsuper$postStop()Overridden callback.voidsuper$preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)-
Methods inherited from interface akka.actor.Actor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, preStart, receive, self, sender, supervisorStrategy, unhandled
-
Methods inherited from interface akka.actor.StashSupport
actorCell, akka$actor$StashSupport$_setter_$mailbox_$eq, clearStash, context, enqueueFirst, mailbox, prepend, self, stash, theStash_$eq, unstash, unstashAll, unstashAll
-
-
-
-
Method Detail
-
postStop
void postStop() throws java.lang.ExceptionOverridden 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.
-
preRestart
void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.ExceptionOverridden callback. Prepends all messages in the stash to the mailbox, clears the stash, stops all children and invokes the postStop() callback.- Specified by:
preRestartin interfaceActor- Parameters:
reason- (undocumented)message- (undocumented)- Throws:
java.lang.Exception
-
super$postStop
void super$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.
-
super$preRestart
void super$preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
-
-