Class Terminated
When Death Watch is used, the watcher will receive a Terminated(watched) message when watched is terminated. Terminated message can't be forwarded to another actor, since that actor might not be watching the subject. Instead, if you need to forward Terminated to another actor you should send the information in your own message.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public sealed class Terminated : IAutoReceivedMessage, IPossiblyHarmful, IDeadLetterSuppression, INoSerializationVerificationNeeded, IEquatable<Terminated>
Constructors
| Improve this Doc View SourceTerminated(IActorRef, Boolean, Boolean)
Initializes a new instance of the Terminated class.
Declaration
public Terminated(IActorRef actorRef, bool existenceConfirmed, bool addressTerminated)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef | the watched actor that terminated |
Boolean | existenceConfirmed | is false when the Terminated message was not sent directly from the watched actor, but derived from another source, such as when watching a non-local ActorRef, which might not have been resolved |
Boolean | addressTerminated | the Terminated message was derived from that the remote node hosting the watched actor was detected as unreachable |
Properties
| Improve this Doc View SourceActorRef
The watched actor that terminated
Declaration
public IActorRef ActorRef { get; }
Property Value
Type | Description |
---|---|
IActorRef |
AddressTerminated
Is false when the Terminated message was not sent directly from the watched actor, but derived from another source, such as when watching a non-local ActorRef, which might not have been resolved
Declaration
public bool AddressTerminated { get; }
Property Value
Type | Description |
---|---|
Boolean |
ExistenceConfirmed
The Terminated message was derived from that the remote node hosting the watched actor was detected as unreachable
Declaration
public bool ExistenceConfirmed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceEquals(Terminated)
Declaration
public bool Equals(Terminated other)
Parameters
Type | Name | Description |
---|---|---|
Terminated | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |