public private static class Inbox.InboxActor extends java.lang.Object implements Actor, ActorLogging
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
InboxActor(int size) |
Modifier and Type | Method and Description |
---|---|
scala.Function1<Inbox.Query,java.lang.Object> |
clientPredicate() |
scala.collection.mutable.Queue<Inbox.Query> |
clients() |
scala.collection.immutable.TreeSet<Inbox.Query> |
clientsByTimeout() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
scala.Option<scala.Tuple2<scala.concurrent.duration.Deadline,Cancellable>> |
currentDeadline() |
java.lang.Object |
currentMsg() |
Inbox.Select |
currentSelect() |
void |
enqueueMessage(java.lang.Object msg) |
void |
enqueueQuery(Inbox.Query q) |
scala.Function1<java.lang.Object,java.lang.Object> |
messagePredicate() |
scala.collection.mutable.Queue<java.lang.Object> |
messages() |
boolean |
printedWarning() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandled
log
public ActorContext context()
Actor
forward
.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext
is the Scala API. getContext
returns a
UntypedActorContext
, which is the Java API of the actor
context.
public final ActorRef self()
Actor
self ! message
public scala.collection.mutable.Queue<Inbox.Query> clients()
public scala.collection.mutable.Queue<java.lang.Object> messages()
public scala.collection.immutable.TreeSet<Inbox.Query> clientsByTimeout()
public boolean printedWarning()
public void enqueueQuery(Inbox.Query q)
public void enqueueMessage(java.lang.Object msg)
public java.lang.Object currentMsg()
public scala.Function1<Inbox.Query,java.lang.Object> clientPredicate()
public Inbox.Select currentSelect()
public scala.Function1<java.lang.Object,java.lang.Object> messagePredicate()
public scala.Option<scala.Tuple2<scala.concurrent.duration.Deadline,Cancellable>> currentDeadline()