Class Behavior
- java.lang.Object
-
- co.paralleluniverse.actors.ActorRef<Message>
-
- co.paralleluniverse.actors.ActorRefDelegate<java.lang.Object>
-
- co.paralleluniverse.actors.behaviors.Behavior
-
- All Implemented Interfaces:
Port<java.lang.Object>
,PortAutoCloseable
,SendPort<java.lang.Object>
,java.io.Serializable
,java.lang.AutoCloseable
- Direct Known Subclasses:
EventSource
,Server
,Supervisor
public class Behavior extends ActorRefDelegate<java.lang.Object>
A general behavior-actor interface- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shutdown()
Asks this actor to shut down.-
Methods inherited from class co.paralleluniverse.actors.ActorRefDelegate
getImpl, isInActor
-
Methods inherited from class co.paralleluniverse.actors.ActorRef
close, close, equals, getName, hashCode, interrupt, send, send, send, sendSync, toString, trySend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface co.paralleluniverse.strands.channels.PortAutoCloseable
isClosed
-
-
-
-
Constructor Detail
-
Behavior
protected Behavior(ActorRef<java.lang.Object> actor)
-
-
Method Detail
-
shutdown
public void shutdown()
Asks this actor to shut down. Works by sending aShutdownMessage
viaActorUtil.sendOrInterrupt
.
-
-