Class PoisonPillInterceptor<M>

  • public final class PoisonPillInterceptor<M>
    extends BehaviorSignalInterceptor<M>

    Returns Behaviors.stopped for PoisonPill signals unless it has been handled by the target Behavior. Used by Cluster Sharding to automatically stop entities without defining a stop message in the application protocol. Persistent actors handle PoisonPill and run side effects after persist and process stashed messages before stopping.