public abstract class Inbox
extends java.lang.Object
Constructor and Description |
---|
Inbox() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static Inbox create(ActorSystem system)
system
- (undocumented)public abstract java.lang.Object receive(scala.concurrent.duration.FiniteDuration max) throws java.util.concurrent.TimeoutException
TimeoutException
will be raised.max
- (undocumented)java.util.concurrent.TimeoutException
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)