Package co.paralleluniverse.actors
Quasar Actors
An actor implementation extends theActor
or BasicActor
class, and is spawned like so:
ActorRef actor = new MyActor().spawn();
You interact with actors through the ActorRef
class.-
Interface Summary Interface Description ActorBuilder<Message,V> An object that can construct a new actorActorLoaderMXBean ActorMXBean An MXBean monitoring a single actor.ActorsMXBean An MXBean that monitors all actors.LifecycleMessage A message that is automatically generated by an actor upon some lifecycle event (like death) and sent to itswatchers
orlinked actors
.MessageProcessor<Message,T> An interface that is used byBasicActor.receive
for selective receive.MigratingActor A marker interface that must be implemented by actors wishing to support migration -
Class Summary Class Description Actor<Message,V> An actor is a self-contained execution unit - an object running in its own strand and communicating with other actors via messages.ActorImpl<Message> ActorImpl.ActorLifecycleListener ActorInfo Information about an actor returned byActorsMXBean
.ActorLoader Loads actor, and actor-related classes for hot code-swapping.ActorRef<Message> An actor's external API (for use by code not part of the actor).ActorRefDelegate<Message> AnActorRef
which delegates all operations to anotherActorRef
.ActorRegistry A registry used to find registered actors by name.ActorSpec<T extends Actor<Message,V>,Message,V> A specification of how to construct an actorActorUtil Static utility methods for working with actors.BasicActor<Message,V> A subclass ofActor
that provides selective receive capabilities.ExitMessage ALifecycleMessage
signifying an actor's death.FakeActor<Message> LocalActor Mailbox<Message> A channel that is used as an actor's mailbox.MailboxConfig An actor mailbox configuration.RemoteActor<Message> This class should be extended by implementations of remote actors.RemoteActor.RemoteActorAdminMessage SelectiveReceiveHelper<Message> Performs selective receive on behalf of an actor.ShutdownMessage A message requesting the receiving actor to shut itself down. -
Exception Summary Exception Description ConcurrencyException LifecycleException An exception that is generated by an actor'shandleLifecycle
method (and thrown by thereceive
method) if anExitMessage
is received from alinked actor
.RegistrationException -
Annotation Types Summary Annotation Type Description OnUpgrade Specifies that a method is to be called after its class has been upgraded.Upgrade Marks an actor class as a code upgrade.