Class RemoteActorRef
RemoteActorRef - used to provide a local handle to an actor running in a remote process.
Inherited Members
Namespace: Akka.Remote
Assembly: Akka.Remote.dll
Syntax
public class RemoteActorRef : InternalActorRefBase, IInternalActorRef, IActorRef, ICanTell, IEquatable<IActorRef>, IComparable<IActorRef>, ISurrogated, IComparable, IRemoteRef, IActorRefScope
Constructors
| Improve this Doc View SourceRemoteActorRef(RemoteTransport, Address, ActorPath, IInternalActorRef, Props, Deploy)
Initializes a new instance of the RemoteActorRef class.
Declaration
public RemoteActorRef(RemoteTransport remote, Address localAddressToUse, ActorPath path, IInternalActorRef parent, Props props, Deploy deploy)
Parameters
Type | Name | Description |
---|---|---|
Akka.Remote.RemoteTransport | remote | The remote. |
Address | localAddressToUse | The local address to use. |
ActorPath | path | The path. |
Akka.Actor.IInternalActorRef | parent | The parent. |
Props | props | The props. |
Deploy | deploy | The deploy. |
Properties
| Improve this Doc View SourceIsLocal
Declaration
public override bool IsLocal { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsTerminated
Declaration
[Obsolete("Use Context.Watch and Receive<Terminated> [1.1.0]")]
public override bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
LocalAddressToUse
Gets the local address to use.
Declaration
public Address LocalAddressToUse { get; }
Property Value
Type | Description |
---|---|
Address | The local address to use. |
Parent
Gets the parent.
Declaration
public override IInternalActorRef Parent { get; }
Property Value
Type | Description |
---|---|
Akka.Actor.IInternalActorRef | The parent. |
Overrides
Path
An actor reference. Acts as a handle to an actor. Used to send messages to an actor, whether an actor is local or remote. If you receive a reference to an actor, that actor is guaranteed to have existed at some point in the past. However, an actor can always be terminated in the future.
If you want to be notified about an actor terminating, call IActorContext.Watch on this actor and you'll receive a Terminated message when the actor dies or if it is already dead.
Declaration
public override ActorPath Path { get; }
Property Value
Type | Description |
---|---|
ActorPath |
Overrides
Remarks
Actor references can be serialized and passed over the network.
Provider
Gets the provider.
Declaration
public override IActorRefProvider Provider { get; }
Property Value
Type | Description |
---|---|
IActorRefProvider | The provider. |
Overrides
Methods
| Improve this Doc View SourceGetChild(IReadOnlyList<String>)
Gets the child.
Declaration
public override IActorRef GetChild(IReadOnlyList<string> name)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<String> | name | The name. |
Returns
Type | Description |
---|---|
IActorRef | ActorRef. |
Overrides
Exceptions
Type | Condition |
---|---|
NotImplementedException | TBD |
IsWatchIntercepted(IActorRef, IActorRef)
Determine if a Watch/Unwatch message must be handled by the RemoteWatcher actor, or sent to this RemoteActorRef.
Declaration
public bool IsWatchIntercepted(IActorRef watchee, IActorRef watcher)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | watchee | The actor being watched. |
IActorRef | watcher | The actor watching. |
Returns
Type | Description |
---|---|
Boolean | TBD |
Restart(Exception)
Restarts the specified cause.
Declaration
public override void Restart(Exception cause)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The cause. |
Overrides
Resume(Exception)
Resumes the specified caused by failure.
Declaration
public override void Resume(Exception causedByFailure = null)
Parameters
Type | Name | Description |
---|---|---|
Exception | causedByFailure | The caused by failure. |
Overrides
SendSystemMessage(ISystemMessage)
Sends the system message.
Declaration
public override void SendSystemMessage(ISystemMessage message)
Parameters
Type | Name | Description |
---|---|---|
ISystemMessage | message | The message. |
Overrides
Start()
Starts this instance.
Declaration
public override void Start()
Overrides
Stop()
Stops this instance.
Declaration
public override void Stop()
Overrides
Suspend()
Suspends this instance.
Declaration
public override void Suspend()
Overrides
TellInternal(Object, IActorRef)
Tells the internal.
Declaration
protected override void TellInternal(object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message. |
IActorRef | sender | The sender. |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidMessageException | TBD |