C# Class Akka.Actor.ActorCell

Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat System

ActorSelection() public méthode

public ActorSelection ( ActorPath path ) : ActorSelection
path ActorPath
Résultat ActorSelection

ActorSelection() public méthode

public ActorSelection ( string path ) : ActorSelection
path string
Résultat ActorSelection

AddWatcher() protected méthode

protected AddWatcher ( IActorRef watchee, IActorRef watcher ) : void
watchee IActorRef
watcher IActorRef
Résultat void

AddressTerminated() protected méthode

protected AddressTerminated ( Akka.Actor.Address address ) : void
address Akka.Actor.Address
Résultat void

AutoReceiveMessage() protected méthode

protected AutoReceiveMessage ( Envelope envelope ) : void
envelope Envelope
Résultat void

Become() public méthode

public Become ( Receive receive ) : void
receive Receive
Résultat void

BecomeStacked() public méthode

public BecomeStacked ( Receive receive ) : void
receive Receive
Résultat void

ClearActor() protected méthode

protected ClearActor ( ActorBase actor ) : void
actor ActorBase
Résultat void

ClearActorCell() protected méthode

protected ClearActorCell ( ) : void
Résultat void

CreateNewActorInstance() protected méthode

protected CreateNewActorInstance ( ) : ActorBase
Résultat ActorBase

GetChildren() public méthode

public GetChildren ( ) : IEnumerable
Résultat IEnumerable

GetCurrentSelfOrNoSender() public static méthode

public static GetCurrentSelfOrNoSender ( ) : IActorRef
Résultat IActorRef

GetCurrentSenderOrNoSender() public static méthode

public static GetCurrentSenderOrNoSender ( ) : IActorRef
Résultat IActorRef

Init() public méthode

public Init ( bool sendSupervise, Func createMailbox ) : void
sendSupervise bool
createMailbox Func
Résultat void

Invoke() public méthode

Invokes the specified envelope.
public Invoke ( Envelope envelope ) : void
envelope Envelope The envelope.
Résultat void

Post() public méthode

public Post ( IActorRef sender, object message ) : void
sender IActorRef
message object
Résultat void

PreStart() protected méthode

Allow extra pre-start initialization in derived classes
protected PreStart ( ) : void
Résultat void

PrepareForNewActor() protected méthode

protected PrepareForNewActor ( ) : void
Résultat void

ReceiveMessageForTest() public méthode

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

ReceivedTerminated() protected méthode

protected ReceivedTerminated ( Terminated t ) : void
t Terminated
Résultat void

RemWatcher() protected méthode

protected RemWatcher ( IActorRef watchee, IActorRef watcher ) : void
watchee IActorRef
watcher IActorRef
Résultat void

Restart() public méthode

Restarts the specified cause.
public Restart ( Exception cause ) : void
cause Exception The cause.
Résultat void

Resume() public méthode

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

SendSystemMessage() public méthode

public SendSystemMessage ( ISystemMessage systemMessage ) : void
systemMessage ISystemMessage
Résultat void

SetActorFields() protected méthode

protected SetActorFields ( ActorBase actor ) : void
actor ActorBase
Résultat void

SplitNameAndUid() public static méthode

public static SplitNameAndUid ( string name ) : NameAndUid
name string
Résultat NameAndUid

Start() public méthode

Starts this instance.
public Start ( ) : void
Résultat void

Stop() public méthode

Async stop this actor
public Stop ( ) : void
Résultat void

Suspend() public méthode

Suspends this instance.
public Suspend ( ) : void
Résultat void

SwapMailbox() public méthode

public SwapMailbox ( DeadLetterMailbox mailbox ) : void
mailbox DeadLetterMailbox
Résultat void

SystemInvoke() public méthode

Used to invoke system messages.
public SystemInvoke ( Envelope envelope ) : void
envelope Envelope The envelope.
Résultat void

TellWatchersWeDied() protected méthode

protected TellWatchersWeDied ( ) : void
Résultat void

TerminatedQueuedFor() public méthode

public TerminatedQueuedFor ( IActorRef subject ) : void
subject IActorRef
Résultat void

UnbecomeStacked() public méthode

public UnbecomeStacked ( ) : void
Résultat void

Unwatch() public méthode

public Unwatch ( IActorRef subject ) : IActorRef
subject IActorRef
Résultat IActorRef

UnwatchWatchedActors() protected méthode

protected UnwatchWatchedActors ( ActorBase actor ) : void
actor ActorBase
Résultat void

UseThreadContext() public méthode

public UseThreadContext ( Action action ) : void
action Action
Résultat void

Watch() public méthode

public Watch ( IActorRef subject ) : IActorRef
subject IActorRef
Résultat IActorRef

WatchedActorTerminated() protected méthode

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
Résultat void