Click or drag to resize
Akka.NETRemoteWatcher Class
INTERNAL API Remote nodes with actors that are watched are monitored by this actor to be able to detect network failures and process crashes. RemoteActorRefProvider intercepts Watch and Unwatch system messages and sends corresponding RemoteWatcherWatchRemote and RemoteWatcherUnwatchRemote to this actor. For a new node to be watched this actor periodically sends RemoteWatcherHeartbeat to the peer actor on the other node, which replies with RemoteWatcherHeartbeatRsp message back. The failure detector on the watching side monitors these heartbeat messages. If arrival of heartbeat messages stops it will be detected and this actor will publish AddressTerminated to the AddressTerminatedTopic. When all actors on a node have been unwatched it will stop sending heartbeat messages. For bi-directional watch between two nodes the same thing will be established in both directions, but independent of each other.
Inheritance Hierarchy

Namespace:  Akka.Remote
Assembly:  Akka.Remote (in Akka.Remote.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class RemoteWatcher : UntypedActor, 
	IRequiresMessageQueue<IUnboundedMessageQueueSemantics>

The RemoteWatcher type exposes the following members.

Constructors
  NameDescription
Public methodRemoteWatcher
TBD
Top
Properties
  NameDescription
Protected propertySelf
Gets the self ActorRef
(Inherited from ActorBase.)
Protected propertySender
Gets the sending ActorRef of the current message
(Inherited from ActorBase.)
Protected propertyUnreachable
TBD
Protected propertyWatchingNodes
TBD
Top
Methods
  NameDescription
Protected methodAddWatching
TBD
Public methodAroundPostRestart
Can be overridden to intercept calls to `PostRestart`. Calls `PostRestart` by default.
(Inherited from ActorBase.)
Public methodAroundPostStop
Can be overridden to intercept calls to `PostStop`. Calls `PostStop` by default..
(Inherited from ActorBase.)
Public methodAroundPreRestart
Can be overridden to intercept calls to `PreRestart`. Calls `PreRestart` by default.
(Inherited from ActorBase.)
Public methodAroundPreStart
Can be overridden to intercept calls to `PreStart`. Calls `PreStart` by default.
(Inherited from ActorBase.)
Protected methodAroundReceive
TBD
(Inherited from ActorBase.)
Protected methodBecome(Receive)
Changes the actor's command behavior and replaces the current receive handler with the specified handler.
(Inherited from ActorBase.)
Protected methodBecome(UntypedReceive)
Changes the actor's behavior and replaces the current receive handler with the specified handler.
(Inherited from UntypedActor.)
Protected methodBecomeStacked(Receive)
Changes the actor's behavior and replaces the current receive handler with the specified handler. The current handler is stored on a stack, and you can revert to it by calling UnbecomeStacked
Remarks
Please note, that in order to not leak memory, make sure every call to BecomeStacked(Receive) is matched with a call to UnbecomeStacked.
(Inherited from ActorBase.)
Protected methodBecomeStacked(UntypedReceive)
Changes the actor's behavior and replaces the current receive handler with the specified handler. The current handler is stored on a stack, and you can revert to it by calling UnbecomeStacked
Remarks
Please note, that in order to not leak memory, make sure every call to BecomeStacked(UntypedReceive) is matched with a call to UnbecomeStacked.
(Inherited from UntypedActor.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnReceive
TBD
(Overrides UntypedActorOnReceive(Object).)
Protected methodPostRestart
User overridable callback: By default it calls `PreStart()`.

Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.

(Inherited from ActorBase.)
Protected methodPostStop
TBD
(Overrides ActorBasePostStop.)
Protected methodPreRestart
User overridable callback: '''By default it disposes of all children and then calls `postStop()`.'''

Is called on a crashed Actor right BEFORE it is restarted to allow clean up of resources before Actor is terminated.

(Inherited from ActorBase.)
Protected methodPreStart
User overridable callback.

Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.

(Inherited from ActorBase.)
Public methodStatic memberProps
TBD
Protected methodPublishAddressTerminated
TBD
Protected methodQuarantine
TBD
Protected methodReceive
TBD
(Inherited from UntypedActor.)
Protected methodRemoveWatch
TBD
Protected methodRemoveWatchee
TBD
Protected methodRunTask(Action)
TBD
(Inherited from UntypedActor.)
Protected methodRunTask(FuncTask)
TBD
(Inherited from UntypedActor.)
Protected methodSetReceiveTimeout

Defines the inactivity timeout after which the sending of a ReceiveTimeout message is triggered. When specified, the receive function should be able to handle a ReceiveTimeout message.

Please note that the receive timeout might fire and enqueue the ReceiveTimeout message right after another message was enqueued; hence it is not guaranteed that upon reception of the receive timeout there must have been an idle period beforehand as configured via this method.

Once set, the receive timeout stays in effect (i.e. continues firing repeatedly after inactivity periods). Pass in null to switch off this feature.

(Inherited from ActorBase.)
Protected methodSupervisorStrategy
TBD
(Inherited from ActorBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnbecomeStacked
Reverts the Actor behavior to the previous one on the behavior stack.
(Inherited from ActorBase.)
Protected methodUnhandled
Is called when a message isn't handled by the current behavior of the actor by default it fails with either a DeathPactException (in case of an unhandled Terminated message) or publishes an UnhandledMessage to the actor's system's EventStream
(Inherited from ActorBase.)
Protected methodUnwatchNode
TBD
Protected methodWatchNode
TBD
Top
Fields
  NameDescription
Protected fieldLog
TBD
Protected fieldWatcheeByNodes
Nodes that this node is watching, i.e. expecting heartbeats from these nodes. Map of address --> Set(watchee) on this address.
Protected fieldWatching
Actors that this node is watching, map of watchee --> Set(watchers)
Top
Extension Methods
See Also