C# Класс Akka.Actor.ActorCell

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ActorCell() публичный Метод

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
Результат System

ActorSelection() публичный Метод

public ActorSelection ( ActorPath path ) : ActorSelection
path ActorPath
Результат ActorSelection

ActorSelection() публичный Метод

public ActorSelection ( string path ) : ActorSelection
path string
Результат ActorSelection

AddWatcher() защищенный Метод

protected AddWatcher ( IActorRef watchee, IActorRef watcher ) : void
watchee IActorRef
watcher IActorRef
Результат void

AddressTerminated() защищенный Метод

protected AddressTerminated ( Akka.Actor.Address address ) : void
address Akka.Actor.Address
Результат void

AutoReceiveMessage() защищенный Метод

protected AutoReceiveMessage ( Envelope envelope ) : void
envelope Envelope
Результат void

Become() публичный Метод

public Become ( Receive receive ) : void
receive Receive
Результат void

BecomeStacked() публичный Метод

public BecomeStacked ( Receive receive ) : void
receive Receive
Результат void

ClearActor() защищенный Метод

protected ClearActor ( ActorBase actor ) : void
actor ActorBase
Результат void

ClearActorCell() защищенный Метод

protected ClearActorCell ( ) : void
Результат void

CreateNewActorInstance() защищенный Метод

protected CreateNewActorInstance ( ) : ActorBase
Результат ActorBase

GetChildren() публичный Метод

public GetChildren ( ) : IEnumerable
Результат IEnumerable

GetCurrentSelfOrNoSender() публичный статический Метод

public static GetCurrentSelfOrNoSender ( ) : IActorRef
Результат IActorRef

GetCurrentSenderOrNoSender() публичный статический Метод

public static GetCurrentSenderOrNoSender ( ) : IActorRef
Результат IActorRef

Init() публичный Метод

public Init ( bool sendSupervise, Func createMailbox ) : void
sendSupervise bool
createMailbox Func
Результат void

Invoke() публичный Метод

Invokes the specified envelope.
public Invoke ( Envelope envelope ) : void
envelope Envelope The envelope.
Результат void

Post() публичный Метод

public Post ( IActorRef sender, object message ) : void
sender IActorRef
message object
Результат void

PreStart() защищенный Метод

Allow extra pre-start initialization in derived classes
protected PreStart ( ) : void
Результат void

PrepareForNewActor() защищенный Метод

protected PrepareForNewActor ( ) : void
Результат void

ReceiveMessageForTest() публичный Метод

This is only intended to be called from TestKit's TestActorRef
public ReceiveMessageForTest ( Envelope envelope ) : void
envelope Envelope
Результат void

ReceivedTerminated() защищенный Метод

protected ReceivedTerminated ( Terminated t ) : void
t Terminated
Результат void

RemWatcher() защищенный Метод

protected RemWatcher ( IActorRef watchee, IActorRef watcher ) : void
watchee IActorRef
watcher IActorRef
Результат void

Restart() публичный Метод

Restarts the specified cause.
public Restart ( Exception cause ) : void
cause Exception The cause.
Результат void

Resume() публичный Метод

Resumes the specified caused by failure.
public Resume ( Exception causedByFailure ) : void
causedByFailure Exception The caused by failure.
Результат void

SendSystemMessage() публичный Метод

public SendSystemMessage ( ISystemMessage systemMessage ) : void
systemMessage ISystemMessage
Результат void

SetActorFields() защищенный Метод

protected SetActorFields ( ActorBase actor ) : void
actor ActorBase
Результат void

SplitNameAndUid() публичный статический Метод

public static SplitNameAndUid ( string name ) : NameAndUid
name string
Результат NameAndUid

Start() публичный Метод

Starts this instance.
public Start ( ) : void
Результат void

Stop() публичный Метод

Async stop this actor
public Stop ( ) : void
Результат void

Suspend() публичный Метод

Suspends this instance.
public Suspend ( ) : void
Результат void

SwapMailbox() публичный Метод

public SwapMailbox ( DeadLetterMailbox mailbox ) : void
mailbox DeadLetterMailbox
Результат void

SystemInvoke() публичный Метод

Used to invoke system messages.
public SystemInvoke ( Envelope envelope ) : void
envelope Envelope The envelope.
Результат void

TellWatchersWeDied() защищенный Метод

protected TellWatchersWeDied ( ) : void
Результат void

TerminatedQueuedFor() публичный Метод

public TerminatedQueuedFor ( IActorRef subject ) : void
subject IActorRef
Результат void

UnbecomeStacked() публичный Метод

public UnbecomeStacked ( ) : void
Результат void

Unwatch() публичный Метод

public Unwatch ( IActorRef subject ) : IActorRef
subject IActorRef
Результат IActorRef

UnwatchWatchedActors() защищенный Метод

protected UnwatchWatchedActors ( ActorBase actor ) : void
actor ActorBase
Результат void

UseThreadContext() публичный Метод

public UseThreadContext ( Action action ) : void
action Action
Результат void

Watch() публичный Метод

public Watch ( IActorRef subject ) : IActorRef
subject IActorRef
Результат IActorRef

WatchedActorTerminated() защищенный Метод

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
Результат void