C# Class Akka.Actor.ActorCell

Mostra file Open project: rogeralsing/akka.net Class Usage Examples

Private Properties

Property Type Description
ClearFailed void
Create void
FaultCreate void
FaultRecreate void
FaultResume void
FaultSuspend void
FinishCreate void
FinishRecreate void
FinishTerminate void
GetChildByName IInternalActorRef
HandleActorTaskSchedulerMessage void
HandleChildTerminated void
HandleCreate void
HandleFailed void
HandleIdentity void
HandleInvokeFailure void
HandleNonFatalOrInterruptedException void
HandlePoisonPill void
HandleSupervise void
HasNonLocalAddress bool
IActorContext IActorRef
IActorContext IEnumerable
IActorContext void
IActorContext void
IUntypedActorContext void
IUntypedActorContext void
IsNonLocal bool
Kill void
MaintainAddressTerminatedSubscription void
MatchSender IActorRef
NewActor ActorBase
NewUid long
Publish void
ReceiveMessage void
ReceiveSelection void
ReleaseActor void
ResumeNonRecursive void
SendTerminated void
SetFailed void
StopChildren void
SubscribeAddressTerminated void
Supervise void
SuspendNonRecursive void
Terminate void
UnsubscribeAddressTerminated void
WatchingContains bool

Public Methods

Method Description
ActorCell ( ActorSystemImpl system, IInternalActorRef self, Props props, MessageDispatcher dispatcher, IInternalActorRef parent ) : System
ActorSelection ( ActorPath path ) : ActorSelection
ActorSelection ( string path ) : ActorSelection
Become ( Receive receive ) : void
BecomeStacked ( Receive receive ) : void
GetChildren ( ) : IEnumerable
GetCurrentSelfOrNoSender ( ) : IActorRef
GetCurrentSenderOrNoSender ( ) : IActorRef
Init ( bool sendSupervise, Func createMailbox ) : void
Invoke ( Envelope envelope ) : void

Invokes the specified envelope.

Post ( IActorRef sender, object message ) : void
ReceiveMessageForTest ( Envelope envelope ) : void

This is only intended to be called from TestKit's TestActorRef

Restart ( Exception cause ) : void

Restarts the specified cause.

Resume ( Exception causedByFailure ) : void

Resumes the specified caused by failure.

SendSystemMessage ( ISystemMessage systemMessage ) : void
SplitNameAndUid ( string name ) : NameAndUid
Start ( ) : void

Starts this instance.

Stop ( ) : void

Async stop this actor

Suspend ( ) : void

Suspends this instance.

SwapMailbox ( DeadLetterMailbox mailbox ) : void
SystemInvoke ( Envelope envelope ) : void

Used to invoke system messages.

TerminatedQueuedFor ( IActorRef subject ) : void
UnbecomeStacked ( ) : void
Unwatch ( IActorRef subject ) : IActorRef
UseThreadContext ( Action action ) : void
Watch ( IActorRef subject ) : IActorRef

Protected Methods

Method Description
AddWatcher ( IActorRef watchee, IActorRef watcher ) : void
AddressTerminated ( Akka.Actor.Address address ) : void
AutoReceiveMessage ( Envelope envelope ) : void
ClearActor ( ActorBase actor ) : void
ClearActorCell ( ) : void
CreateNewActorInstance ( ) : ActorBase
PreStart ( ) : void

Allow extra pre-start initialization in derived classes

PrepareForNewActor ( ) : void
ReceivedTerminated ( Terminated t ) : void
RemWatcher ( IActorRef watchee, IActorRef watcher ) : void
SetActorFields ( ActorBase actor ) : void
TellWatchersWeDied ( ) : void
UnwatchWatchedActors ( ActorBase actor ) : void
WatchedActorTerminated ( IActorRef actor, bool existenceConfirmed, bool addressTerminated ) : void

When this actor is watching the subject of Terminated message it will be propagated to user's receive.

Private Methods

Method Description
ClearFailed ( ) : void
Create ( Exception failure ) : void
FaultCreate ( ) : void

Create the actor in response to a failure

FaultRecreate ( Exception cause ) : void

Re-create the actor in response to a failure.

FaultResume ( Exception causedByFailure ) : void

Resumes the actor in response to a failure

FaultSuspend ( ) : void

Suspends the actor in response to a failure of a parent (i.e. the "recursive suspend" feature).

FinishCreate ( ) : void
FinishRecreate ( Exception cause, ActorBase failedActor ) : void
FinishTerminate ( ) : void
GetChildByName ( string name ) : IInternalActorRef
HandleActorTaskSchedulerMessage ( ActorTaskSchedulerMessage m ) : void
HandleChildTerminated ( IActorRef child ) : void
HandleCreate ( Exception failure ) : void
HandleFailed ( Failed f ) : void
HandleIdentity ( Identify m ) : void

Handles the identity.

HandleInvokeFailure ( Exception cause, IEnumerable childrenNotToSuspend = null ) : void
HandleNonFatalOrInterruptedException ( System.Action action ) : void

Handles the non fatal or interrupted exception.

HandlePoisonPill ( ) : void

Handles the poison pill.

HandleSupervise ( IActorRef child, bool async ) : void
HasNonLocalAddress ( ) : bool
IActorContext ( string name ) : IActorRef
IActorContext ( ) : IEnumerable
IActorContext ( ) : void
IActorContext ( Receive receive, bool discardOld = true ) : void
IUntypedActorContext ( UntypedReceive receive ) : void
IUntypedActorContext ( UntypedReceive receive, bool discardOld ) : void
IsNonLocal ( IActorRef @ref ) : bool
Kill ( ) : void

Kills this instance.

MaintainAddressTerminatedSubscription ( Action block, IActorRef change = null ) : void

Starts subscription to AddressTerminated if not already subscribing and the block adds a non-local ref to watching or watchedBy. Ends subscription to AddressTerminated if subscribing and the block removes the last non-local ref from watching and watchedBy.

MatchSender ( Envelope envelope ) : IActorRef

If the envelope.Sender property is null, then we'll substitute Deadletters as the Sender of this message.

NewActor ( ) : ActorBase
NewUid ( ) : long
Publish ( LogEvent @event ) : void

Publishes the specified event.

ReceiveMessage ( object message ) : void
ReceiveSelection ( ActorSelectionMessage m ) : void

Receives the selection.

ReleaseActor ( ActorBase a ) : void
ResumeNonRecursive ( ) : void
SendTerminated ( bool ifLocal, IInternalActorRef watcher ) : void
SetFailed ( IActorRef perpetrator ) : void
StopChildren ( ) : void
SubscribeAddressTerminated ( ) : void
Supervise ( IActorRef child, bool async ) : void
SuspendNonRecursive ( ) : void
Terminate ( ) : void

Terminates this instance.

UnsubscribeAddressTerminated ( ) : void
WatchingContains ( IActorRef subject ) : bool

Method Details

ActorCell() public method

public ActorCell ( ActorSystemImpl system, IInternalActorRef self, Props props, MessageDispatcher dispatcher, IInternalActorRef parent ) : System
system ActorSystemImpl
self IInternalActorRef
props Props
dispatcher Akka.Dispatch.MessageDispatcher
parent IInternalActorRef
return System

ActorSelection() public method

public ActorSelection ( ActorPath path ) : ActorSelection
path ActorPath
return ActorSelection

ActorSelection() public method

public ActorSelection ( string path ) : ActorSelection
path string
return ActorSelection

AddWatcher() protected method

protected AddWatcher ( IActorRef watchee, IActorRef watcher ) : void
watchee IActorRef
watcher IActorRef
return void

AddressTerminated() protected method

protected AddressTerminated ( Akka.Actor.Address address ) : void
address Akka.Actor.Address
return void

AutoReceiveMessage() protected method

protected AutoReceiveMessage ( Envelope envelope ) : void
envelope Envelope
return void

Become() public method

public Become ( Receive receive ) : void
receive Receive
return void

BecomeStacked() public method

public BecomeStacked ( Receive receive ) : void
receive Receive
return void

ClearActor() protected method

protected ClearActor ( ActorBase actor ) : void
actor ActorBase
return void

ClearActorCell() protected method

protected ClearActorCell ( ) : void
return void

CreateNewActorInstance() protected method

protected CreateNewActorInstance ( ) : ActorBase
return ActorBase

GetChildren() public method

public GetChildren ( ) : IEnumerable
return IEnumerable

GetCurrentSelfOrNoSender() public static method

public static GetCurrentSelfOrNoSender ( ) : IActorRef
return IActorRef

GetCurrentSenderOrNoSender() public static method

public static GetCurrentSenderOrNoSender ( ) : IActorRef
return IActorRef

Init() public method

public Init ( bool sendSupervise, Func createMailbox ) : void
sendSupervise bool
createMailbox Func
return void

Invoke() public method

Invokes the specified envelope.
public Invoke ( Envelope envelope ) : void
envelope Envelope The envelope.
return void

Post() public method

public Post ( IActorRef sender, object message ) : void
sender IActorRef
message object
return void

PreStart() protected method

Allow extra pre-start initialization in derived classes
protected PreStart ( ) : void
return void

PrepareForNewActor() protected method

protected PrepareForNewActor ( ) : void
return void

ReceiveMessageForTest() public method

This is only intended to be called from TestKit's TestActorRef
public ReceiveMessageForTest ( Envelope envelope ) : void
envelope Envelope
return void

ReceivedTerminated() protected method

protected ReceivedTerminated ( Terminated t ) : void
t Terminated
return void

RemWatcher() protected method

protected RemWatcher ( IActorRef watchee, IActorRef watcher ) : void
watchee IActorRef
watcher IActorRef
return void

Restart() public method

Restarts the specified cause.
public Restart ( Exception cause ) : void
cause Exception The cause.
return void

Resume() public method

Resumes the specified caused by failure.
public Resume ( Exception causedByFailure ) : void
causedByFailure Exception The caused by failure.
return void

SendSystemMessage() public method

public SendSystemMessage ( ISystemMessage systemMessage ) : void
systemMessage ISystemMessage
return void

SetActorFields() protected method

protected SetActorFields ( ActorBase actor ) : void
actor ActorBase
return void

SplitNameAndUid() public static method

public static SplitNameAndUid ( string name ) : NameAndUid
name string
return NameAndUid

Start() public method

Starts this instance.
public Start ( ) : void
return void

Stop() public method

Async stop this actor
public Stop ( ) : void
return void

Suspend() public method

Suspends this instance.
public Suspend ( ) : void
return void

SwapMailbox() public method

public SwapMailbox ( DeadLetterMailbox mailbox ) : void
mailbox DeadLetterMailbox
return void

SystemInvoke() public method

Used to invoke system messages.
public SystemInvoke ( Envelope envelope ) : void
envelope Envelope The envelope.
return void

TellWatchersWeDied() protected method

protected TellWatchersWeDied ( ) : void
return void

TerminatedQueuedFor() public method

public TerminatedQueuedFor ( IActorRef subject ) : void
subject IActorRef
return void

UnbecomeStacked() public method

public UnbecomeStacked ( ) : void
return void

Unwatch() public method

public Unwatch ( IActorRef subject ) : IActorRef
subject IActorRef
return IActorRef

UnwatchWatchedActors() protected method

protected UnwatchWatchedActors ( ActorBase actor ) : void
actor ActorBase
return void

UseThreadContext() public method

public UseThreadContext ( Action action ) : void
action Action
return void

Watch() public method

public Watch ( IActorRef subject ) : IActorRef
subject IActorRef
return IActorRef

WatchedActorTerminated() protected method

When this actor is watching the subject of Terminated message it will be propagated to user's receive.
protected WatchedActorTerminated ( IActorRef actor, bool existenceConfirmed, bool addressTerminated ) : void
actor IActorRef
existenceConfirmed bool
addressTerminated bool
return void