|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.ActorSelection
public abstract class ActorSelection
An ActorSelection is a logical view of a section of an ActorSystem's tree of Actors, allowing for broadcasting of messages to that section.
Constructor Summary | |
---|---|
ActorSelection()
|
Method Summary | |
---|---|
protected abstract ActorRef |
anchor()
|
static ActorSelection |
apply(ActorRef anchorRef,
scala.collection.Iterable<java.lang.String> elements)
Construct an ActorSelection from the given string representing a path relative to the given target. |
static ActorSelection |
apply(ActorRef anchorRef,
java.lang.String path)
Construct an ActorSelection from the given string representing a path relative to the given target. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
protected abstract scala.collection.immutable.IndexedSeq<java.lang.Object> |
path()
|
scala.concurrent.Future<ActorRef> |
resolveOne(scala.concurrent.duration.FiniteDuration timeout)
Resolve the ActorRef matching this selection. |
scala.concurrent.Future<ActorRef> |
resolveOne(Timeout timeout)
Resolve the ActorRef matching this selection. |
void |
tell(java.lang.Object msg)
|
void |
tell(java.lang.Object msg,
ActorRef sender)
|
static ScalaActorSelection |
toScala(ActorSelection sel)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActorSelection()
Method Detail |
---|
public static ScalaActorSelection toScala(ActorSelection sel)
public static ActorSelection apply(ActorRef anchorRef, java.lang.String path)
public static ActorSelection apply(ActorRef anchorRef, scala.collection.Iterable<java.lang.String> elements)
protected abstract ActorRef anchor()
protected abstract scala.collection.immutable.IndexedSeq<java.lang.Object> path()
public void tell(java.lang.Object msg)
public void tell(java.lang.Object msg, ActorRef sender)
public scala.concurrent.Future<ActorRef> resolveOne(Timeout timeout)
ActorRef
matching this selection.
The result is returned as a Future that is completed with the ActorRef
if such an actor exists. It is completed with failure ActorNotFound
if
no such actor exists or the identification didn't complete within the
supplied timeout
.
Under the hood it talks to the actor to verify its existence and acquire its
ActorRef
.
public scala.concurrent.Future<ActorRef> resolveOne(scala.concurrent.duration.FiniteDuration timeout)
ActorRef
matching this selection.
The result is returned as a Future that is completed with the ActorRef
if such an actor exists. It is completed with failure ActorNotFound
if
no such actor exists or the identification didn't complete within the
supplied timeout
.
Under the hood it talks to the actor to verify its existence and acquire its
ActorRef
.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |