|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.dsl.Inbox.Inbox
public static class Inbox.Inbox
Constructor Summary | |
---|---|
Inbox.Inbox(ActorSystem system)
|
Method Summary | ||
---|---|---|
void |
finalize()
Overridden finalizer which will try to stop the actor once this Inbox is no longer referenced. |
|
java.lang.Object |
receive(scala.concurrent.duration.FiniteDuration timeout)
Receive a single message from the internal receiver actor. |
|
ActorRef |
receiver()
|
|
|
select(scala.concurrent.duration.FiniteDuration timeout,
scala.PartialFunction<java.lang.Object,T> predicate)
Receive a single message for which the given partial function is defined and return the transformed result, using the internal receiver actor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Inbox.Inbox(ActorSystem system)
Method Detail |
---|
public ActorRef receiver()
public java.lang.Object receive(scala.concurrent.duration.FiniteDuration timeout)
receiver
actor. The supplied
timeout is used for cleanup purposes and its precision is subject to the
resolution of the system’s scheduler (usually 100ms, but configurable).
Warning: This method blocks the current thread until a message is received, thus it can introduce dead-locks (directly as well as indirectly by causing starvation of the thread pool). Do not use this method within an actor!
public <T> T select(scala.concurrent.duration.FiniteDuration timeout, scala.PartialFunction<java.lang.Object,T> predicate)
receiver
actor.
The supplied timeout is used for cleanup purposes and its precision is
subject to the resolution of the system’s scheduler (usually 100ms, but
configurable).
Warning: This method blocks the current thread until a message is received, thus it can introduce dead-locks (directly as well as indirectly by causing starvation of the thread pool). Do not use this method within an actor!
public void finalize()
finalize
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |