public final class PromiseActorRef extends InternalActorRef implements MinimalActorRef
INTERNAL API
Constructor and Description |
---|
PromiseActorRef(ActorRefProvider provider,
scala.concurrent.Promise<java.lang.Object> result) |
Modifier and Type | Method and Description |
---|---|
static PromiseActorRef |
apply(ActorRefProvider provider,
Timeout timeout,
java.lang.Object targetName,
java.lang.String messageClassName,
ActorRef sender) |
static PromiseActorRef |
apply(ActorRefProvider provider,
Timeout timeout,
java.lang.String targetName) |
InternalActorRef |
getParent()
Obtain parent of this ref; used by getChild for ".." paths.
|
scala.concurrent.ExecutionContext |
internalCallingThreadExecutionContext() |
boolean |
isTerminated()
INTERNAL API: Returns “true” if the actor is locally known to be terminated, “false” if
alive or uncertain.
|
java.lang.String |
messageClassName() |
ActorPath |
path()
Contract of this method:
Must always return the same ActorPath, which must have
been registered if we haven't been stopped yet.
|
ActorRefProvider |
provider()
Get a reference to the actor ref provider which created this ref.
|
scala.concurrent.Promise<java.lang.Object> |
result() |
void |
sendSystemMessage(SystemMessage message) |
void |
stop() |
getChild, isLocal, restart, resume, start, suspend
compareTo, equals, forward, hashCode, noSender, tell, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChild, restart, resume, start, suspend, writeReplace
public PromiseActorRef(ActorRefProvider provider, scala.concurrent.Promise<java.lang.Object> result)
public static PromiseActorRef apply(ActorRefProvider provider, Timeout timeout, java.lang.Object targetName, java.lang.String messageClassName, ActorRef sender)
public static PromiseActorRef apply(ActorRefProvider provider, Timeout timeout, java.lang.String targetName)
public ActorRefProvider provider()
InternalActorRef
provider
in class InternalActorRef
public scala.concurrent.Promise<java.lang.Object> result()
public java.lang.String messageClassName()
public InternalActorRef getParent()
InternalActorRef
getParent
in interface MinimalActorRef
getParent
in class InternalActorRef
public scala.concurrent.ExecutionContext internalCallingThreadExecutionContext()
public ActorPath path()
public void sendSystemMessage(SystemMessage message)
sendSystemMessage
in interface MinimalActorRef
sendSystemMessage
in class InternalActorRef
public boolean isTerminated()
InternalActorRef
isTerminated
in interface MinimalActorRef
isTerminated
in class InternalActorRef
public void stop()
stop
in interface MinimalActorRef
stop
in class InternalActorRef