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, IActorRef, ICanTell, IEquatable<IActorRef>, IComparable<IActorRef>, ISurrogated, IComparable
Constructors
| Edit this page 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 |
---|---|---|
RemoteTransport | remote | The remote. |
Address | localAddressToUse | The local address to use. |
ActorPath | path | The path. |
IInternalActorRef | parent | The parent. |
Props | props | The props. |
Deploy | deploy | The deploy. |
Properties
| Edit this page View SourceIsLocal
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override bool IsLocal { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsTerminated
Declaration
[Obsolete("Use Context.Watch and Receive<Terminated> [1.1.0]")]
public override bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
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
| Edit this page 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 |
---|---|
bool | TBD |
Restart(Exception)
Restarts the specified cause.
Declaration
public override void Restart(Exception cause)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The cause. |
Overrides
| Edit this page View SourceResume(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
| Edit this page View SourceSendSystemMessage(ISystemMessage)
Sends the system message.
Declaration
public override void SendSystemMessage(ISystemMessage message)
Parameters
Type | Name | Description |
---|---|---|
ISystemMessage | message | The message. |
Overrides
| Edit this page View SourceStart()
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 |