Click or drag to resize
Akka.NETActorBase Class
Class ActorBase.
Inheritance Hierarchy
SystemObject
  Akka.ActorActorBase
    More...

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.1.36 (1.2.1.36)
Syntax
public abstract class ActorBase : IInternalActor

The ActorBase type exposes the following members.

Constructors
  NameDescription
Protected methodActorBase
Initializes a new instance of the ActorBase class.
Top
Properties
  NameDescription
Protected propertyStatic memberContext
Gets the context.
Protected propertyStatic memberEmptyReceive
EmptyReceive is a Receive-delegate that matches no messages at all, ever.
Protected propertySelf
Gets the self ActorRef
Protected propertySender
Gets the sending ActorRef of the current message
Top
Methods
  NameDescription
Public methodAroundPostRestart
Can be overridden to intercept calls to `PostRestart`. Calls `PostRestart` by default.
Public methodAroundPostStop
Can be overridden to intercept calls to `PostStop`. Calls `PostStop` by default..
Public methodAroundPreRestart
Can be overridden to intercept calls to `PreRestart`. Calls `PreRestart` by default.
Public methodAroundPreStart
Can be overridden to intercept calls to `PreStart`. Calls `PreStart` by default.
Protected methodAroundReceive
TBD
Protected methodBecome
Changes the actor's command behavior and replaces the current receive handler with the specified handler.
Protected methodBecomeStacked
Changes the actor's behavior and replaces the current receive handler with the specified handler. The current handler is stored on a stack, and you can revert to it by calling UnbecomeStacked
Remarks
Please note, that in order to not leak memory, make sure every call to BecomeStacked(Receive) is matched with a call to UnbecomeStacked.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPostRestart
User overridable callback: By default it calls `PreStart()`.

Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.

Protected methodPostStop
User overridable callback.

Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.

Protected methodPreRestart
User overridable callback: '''By default it disposes of all children and then calls `postStop()`.'''

Is called on a crashed Actor right BEFORE it is restarted to allow clean up of resources before Actor is terminated.

Protected methodPreStart
User overridable callback.

Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.

Protected methodReceive
Processor for user defined messages.
Protected methodSetReceiveTimeout

Defines the inactivity timeout after which the sending of a ReceiveTimeout message is triggered. When specified, the receive function should be able to handle a ReceiveTimeout message.

Please note that the receive timeout might fire and enqueue the ReceiveTimeout message right after another message was enqueued; hence it is not guaranteed that upon reception of the receive timeout there must have been an idle period beforehand as configured via this method.

Once set, the receive timeout stays in effect (i.e. continues firing repeatedly after inactivity periods). Pass in null to switch off this feature.

Protected methodSupervisorStrategy
TBD
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnbecomeStacked
Reverts the Actor behavior to the previous one on the behavior stack.
Protected methodUnhandled
Is called when a message isn't handled by the current behavior of the actor by default it fails with either a DeathPactException (in case of an unhandled Terminated message) or publishes an UnhandledMessage to the actor's system's EventStream
Top
Extension Methods
See Also
Inheritance Hierarchy
SystemObject
  Akka.ActorActorBase
    Akka.ActorEventStreamActor
    Akka.ActorFSMBase
    Akka.ActorGuardianActor
    Akka.ActorSystemGuardianActor
    Akka.ActorTypedActor
    Akka.ActorUntypedActor
    Akka.Cluster.ShardingShardRegion
    Akka.Cluster.Tools.ClientClusterClient
    Akka.Cluster.Tools.ClientClusterReceptionist
    Akka.DispatchFutureActor
    Akka.EventDeadLetterListener
    Akka.EventDefaultLogger
    Akka.IOInetAddressDnsResolver
    Akka.IOSimpleDnsManager
    Akka.PatternBackoffSupervisorBase
    Akka.PersistenceEventsourced
    Akka.Persistence.JournalPersistencePluginProxy
    Akka.Persistence.JournalReplayFilter
    Akka.Persistence.JournalWriteJournalBase
    Akka.PersistencePersistentView
    Akka.Persistence.SnapshotSnapshotStore
    Akka.Streams.ActorsActorPublisherT
    Akka.Streams.ActorsActorSubscriber
    Akka.Streams.ImplementationFanInT
    Akka.Streams.ImplementationFanOutT
    Akka.Streams.Implementation.FusingActorGraphInterpreter
    Akka.Streams.ImplementationStreamSupervisor
    Akka.TestKit.InternalInternalTestActor
    Akka.TestKit.TestActorsBlackHoleActor