|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.actor.Inbox
public abstract class Inbox
An Inbox is an actor-like object which is interrogated from the outside. It contains an actor whose reference can be passed to other actors as usual and it can watch other actors’ lifecycle.
Constructor Summary | |
---|---|
Inbox()
|
Method Summary | |
---|---|
static Inbox |
create(ActorSystem system)
Create a new Inbox within the given system. |
abstract ActorRef |
getRef()
Obtain a reference to the internal actor, which can then for example be registered with the event stream or whatever else you may want to do with an ActorRef . |
abstract java.lang.Object |
receive(scala.concurrent.duration.FiniteDuration max)
Receive the next message from this Inbox. |
abstract void |
send(ActorRef target,
java.lang.Object msg)
Have the internal actor act as the sender of the given message which will be sent to the given target. |
abstract void |
watch(ActorRef target)
Have the internal actor watch the target actor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Inbox()
Method Detail |
---|
public static Inbox create(ActorSystem system)
system
- (undocumented)
public abstract java.lang.Object receive(scala.concurrent.duration.FiniteDuration max)
TimeoutException
will be raised.
max
- (undocumented)
public abstract void watch(ActorRef target)
Terminated
message will be received.
target
- (undocumented)public abstract ActorRef getRef()
ActorRef
.
public abstract void send(ActorRef target, java.lang.Object msg)
target
- (undocumented)msg
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |