Click or drag to resize
PoisonPill Class
Sending a PoisonPill to an will stop the actor when the message is processed. PoisonPill is enqueued as ordinary messages and will be handled after messages that were already queued in the mailbox.

See also Kill which causes the actor to throw an ActorKilledException when it processes the message, which gets handled using the normal supervisor mechanism, and Stop(ActorRef) which causes the actor to stop without processing any more messages.

Inheritance Hierarchy
SystemObject
  Akka.ActorPoisonPill

Namespace: Akka.Actor
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public sealed class PoisonPill : AutoReceivedMessage, 
	NoSerializationVerificationNeeded

The PoisonPill type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
Properties
  NameDescription
Public propertyStatic memberInstance
Top
See Also