Package co.paralleluniverse.actors.behaviors
Standard behavior actors (Server, EventSource, Supervisor)
-
Interface Summary Interface Description ErrorMessage An actor message signifying some errorEventHandler<Event> A handler that can be registered with anEventSource
actor to receive all eventssent
to the actor.FromMessage An actor message that identifies its senderIdMessage An actor message with a unique (or unique with a high probability) ID (usually generated byActorUtil.randtag()
orRequestReplyHelper.makeId()
).Initializer A delegate object that can be used instead of subclassingBehaviorActor
and overriding its methods.ServerHandler<CallMessage,V,CastMessage> A delegate object that can be used instead of subclassingServerActor
and overriding its methods. -
Class Summary Class Description AbstractServerHandler<CallMessage,V,CastMessage> A convenience class implementing theServerHandler
interface.ActorMessage A class extended by all standard actor messages in this package.Behavior A general behavior-actor interfaceBehaviorActor A general behavior-actor class, extended by all behaviors.ErrorResponseMessage A simple subclass ofResponseMessage
that represents an error in processing the request.EventSource<Event> An interface to anEventSourceActor
.EventSourceActor<Event> A behavior actor that can be notified of *event* messages, which are delivered to *event handlers* which may be registered with the actor.FiniteStateMachineActor Abehavior
implementing a finite-state-machine.MessageSelector<M1,M2> A fluent interface for creatingMessageProcessor
s that select messages matching a few simple criteria.ProxyServerActor Wraps a Java object in aServerActor
that exposes the object's methods as an interface and processes them in an actor (on a dedicated strand).ProxyServerActor.Invocation RequestMessage<V> A message that contains a sender reference (thefrom
property} and a unique identifier (theid
property) and may be used as a request byRequestReplyHelper.call()
.RequestReplyHelper This class contains static methods that implement a request-reply pattern with actors.ResponseMessage A message type used as a superclass by responses toRequestMessage
.Server<CallMessage,V,CastMessage> An interface to aServerActor
.ServerActor<CallMessage,V,CastMessage> Abehavior
implementing a server that responds to request messages.Supervisor An interface to aSupervisorActor
.Supervisor.ChildSpec Describes a child actor's configuration in a supervisorSupervisorActor An actor that supervises, and if necessary, restarts other actors.ValueResponseMessage<V> A simple subclass ofResponseMessage
that encapsulates a single response value. -
Enum Summary Enum Description Supervisor.ChildMode Determines whether a child (supervised) actor should be restarted if the supervisor'srestart strategy
states that it should be restarted.SupervisorActor.RestartStrategy Specifies a supervisor's strategy in the event a child dies. -
Exception Summary Exception Description SupervisorException