Package co.paralleluniverse.actors
Class RemoteActor<Message>
- java.lang.Object
-
- co.paralleluniverse.actors.ActorImpl<Message>
-
- co.paralleluniverse.actors.RemoteActor<Message>
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class RemoteActor<Message> extends ActorImpl<Message>
This class should be extended by implementations of remote actors.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
RemoteActor.RemoteActorAdminMessage
-
Nested classes/interfaces inherited from class co.paralleluniverse.actors.ActorImpl
ActorImpl.ActorLifecycleListener
-
-
Field Summary
-
Fields inherited from class co.paralleluniverse.actors.ActorImpl
flightRecorder, ref
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteActor(ActorRef<Message> actor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLifecycleListener(co.paralleluniverse.actors.LifecycleListener listener)
ActorImpl<Message>
getActor()
protected static ActorImpl
getImpl(ActorRef<?> actor)
protected void
handleAdminMessage(RemoteActor.RemoteActorAdminMessage msg)
protected void
internalSend(java.lang.Object message)
For internal useprotected void
internalSendNonSuspendable(java.lang.Object message)
void
interrupt()
protected void
linked(ActorRef actor)
protected void
removeLifecycleListener(co.paralleluniverse.actors.LifecycleListener listener)
protected void
removeObserverListeners(ActorRef observer)
protected void
throwIn(java.lang.RuntimeException e)
boolean
trySend(Message message)
protected void
unlinked(ActorRef actor)
-
Methods inherited from class co.paralleluniverse.actors.ActorImpl
close, close, getLifecycleListener, getMailbox, getName, isRecordingLevel, mailbox, record, record, record, record, record, record, record, ref, sendOrInterrupt, sendSync, setName, toString
-
-
-
-
Method Detail
-
handleAdminMessage
protected void handleAdminMessage(RemoteActor.RemoteActorAdminMessage msg)
-
internalSend
protected void internalSend(java.lang.Object message) throws SuspendExecution
Description copied from class:ActorImpl
For internal use- Specified by:
internalSend
in classActorImpl<Message>
- Throws:
SuspendExecution
-
internalSendNonSuspendable
protected void internalSendNonSuspendable(java.lang.Object message)
- Specified by:
internalSendNonSuspendable
in classActorImpl<Message>
-
addLifecycleListener
protected void addLifecycleListener(co.paralleluniverse.actors.LifecycleListener listener)
- Specified by:
addLifecycleListener
in classActorImpl<Message>
-
removeLifecycleListener
protected void removeLifecycleListener(co.paralleluniverse.actors.LifecycleListener listener)
- Specified by:
removeLifecycleListener
in classActorImpl<Message>
-
unlinked
protected void unlinked(ActorRef actor)
-
removeObserverListeners
protected void removeObserverListeners(ActorRef observer)
- Specified by:
removeObserverListeners
in classActorImpl<Message>
-
throwIn
protected void throwIn(java.lang.RuntimeException e)
-
-