Class LocalActorRef
A local actor reference that exists inside the same process as the current ActorSystem.
Inheritance
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class LocalActorRef : ActorRefWithCell, IActorRef, ICanTell, IEquatable<IActorRef>, IComparable<IActorRef>, ISurrogated, IComparable
Constructors
| Edit this page View SourceLocalActorRef(ActorSystemImpl, Props, MessageDispatcher, MailboxType, IInternalActorRef, ActorPath)
TBD
Declaration
public LocalActorRef(ActorSystemImpl system, Props props, MessageDispatcher dispatcher, MailboxType mailboxType, IInternalActorRef supervisor, ActorPath path)
Parameters
Type | Name | Description |
---|---|---|
ActorSystemImpl | system | TBD |
Props | props | TBD |
MessageDispatcher | dispatcher | TBD |
MailboxType | mailboxType | TBD |
IInternalActorRef | supervisor | TBD |
ActorPath | path | TBD |
Properties
| Edit this page View SourceCell
Declaration
public ActorCell Cell { get; }
Property Value
Type | Description |
---|---|
ActorCell |
Children
An iterable collection of the actor's children. Empty if there are none.
Declaration
public override IEnumerable<IActorRef> Children { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IActorRef> |
Overrides
Dispatcher
The MessageDispatcher this actor will use to execute its message-processing.
Declaration
protected MessageDispatcher Dispatcher { get; }
Property Value
Type | Description |
---|---|
MessageDispatcher |
IsLocal
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
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
MailboxType
The type of mailbox used by this actor
Declaration
protected MailboxType MailboxType { get; }
Property Value
Type | Description |
---|---|
MailboxType |
Parent
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override IInternalActorRef Parent { get; }
Property Value
Type | Description |
---|---|
IInternalActorRef |
Overrides
Path
TBD
Declaration
public override ActorPath Path { get; }
Property Value
Type | Description |
---|---|
ActorPath |
Overrides
| Edit this page View SourceProps
The Props used to create this actor.
Declaration
protected Props Props { get; }
Property Value
Type | Description |
---|---|
Props |
Provider
The Actor Reference Provider API.
The factory used to produce and create IActorRef instances used inside an ActorSystem.
Declaration
public override IActorRefProvider Provider { get; }
Property Value
Type | Description |
---|---|
IActorRefProvider |
Overrides
Supervisor
The actor's supervisor, typically its parent.
Declaration
protected IInternalActorRef Supervisor { get; }
Property Value
Type | Description |
---|---|
IInternalActorRef |
System
The ActorSystem to which this actor ref belongs.
Declaration
protected ActorSystem System { get; }
Property Value
Type | Description |
---|---|
ActorSystem |
Underlying
The ActorCell.
Declaration
public override ICell Underlying { get; }
Property Value
Type | Description |
---|---|
ICell |
Overrides
Methods
| Edit this page View SourceGetChild(IReadOnlyList<string>)
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override IActorRef GetChild(IReadOnlyList<string> name)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<string> | name |
Returns
Type | Description |
---|---|
IActorRef |
Overrides
| Edit this page View SourceGetSingleChild(string)
Fetches a reference to a single child actor.
Declaration
public override IInternalActorRef GetSingleChild(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the child we're trying to fetch. |
Returns
Type | Description |
---|---|
IInternalActorRef | If the child exists, it returns the child actor. Otherwise, we return Nobody. |
Overrides
| Edit this page View SourceNewActorCell(ActorSystemImpl, IInternalActorRef, Props, MessageDispatcher, IInternalActorRef)
Creates a new ActorCell instance.
Declaration
protected virtual ActorCell NewActorCell(ActorSystemImpl system, IInternalActorRef self, Props props, MessageDispatcher dispatcher, IInternalActorRef supervisor)
Parameters
Type | Name | Description |
---|---|---|
ActorSystemImpl | system | The actor system to which this actor belongs. |
IInternalActorRef | self | The reference to this actor. |
Props | props | The Props used to create this actor. |
MessageDispatcher | dispatcher | The dispatcher this actor will run on. |
IInternalActorRef | supervisor | A reference to this actor's supervising actor, typically its parent. |
Returns
Type | Description |
---|---|
ActorCell | A reference to an uninitialized actor cell. |
Restart(Exception)
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override void Restart(Exception cause)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause |
Overrides
| Edit this page View SourceResume(Exception)
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override void Resume(Exception causedByFailure = null)
Parameters
Type | Name | Description |
---|---|---|
Exception | causedByFailure |
Overrides
| Edit this page View SourceSendSystemMessage(ISystemMessage)
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override void SendSystemMessage(ISystemMessage message)
Parameters
Type | Name | Description |
---|---|---|
ISystemMessage | message |
Overrides
| Edit this page View SourceStart()
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override void Start()
Overrides
Stop()
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override void Stop()
Overrides
Suspend()
INTERNAL API.
Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
Declaration
public override void Suspend()
Overrides
TellInternal(object, IActorRef)
TBD
Declaration
protected override void TellInternal(object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
object | message | TBD |
IActorRef | sender | TBD |