public abstract class ActorRef<T> extends java.lang.Object implements java.lang.Comparable<ActorRef<java.lang.Object>>
DeadLetter
channel of the
EventStream
on a best effort basis
(i.e. this delivery is not reliable).Constructor and Description |
---|
ActorRef() |
Modifier and Type | Method and Description |
---|---|
static <T> ActorRef<T> |
apply(akka.actor.ActorRef ref)
Construct a typed ActorRef from an untyped one and a protocol definition
(i.e.
|
int |
compareTo(ActorRef<java.lang.Object> other) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
akka.actor.ActorPath |
path()
The hierarchical path name of the referenced Actor.
|
void |
tell(T msg)
Send a message to the Actor referenced by this ActorRef using *at-most-once*
messaging semantics.
|
static <T> ScalaActorRef<T> |
toScalaActorRef(ActorRef<T> ref) |
java.lang.String |
toString() |
abstract akka.actor.ActorRef |
untypedRef()
INTERNAL API.
|
<U> ActorRef<U> |
upcast()
Unsafe utility method for widening the type accepted by this ActorRef;
provided to avoid having to use
asInstanceOf on the full reference type,
which would unfortunately also work on non-ActorRefs. |
public static <T> ScalaActorRef<T> toScalaActorRef(ActorRef<T> ref)
public static <T> ActorRef<T> apply(akka.actor.ActorRef ref)
ref
- (undocumented)public abstract akka.actor.ActorRef untypedRef()
Implementation detail. The underlying untyped ActorRef
of this typed ActorRef.
public void tell(T msg)
msg
- (undocumented)public <U> ActorRef<U> upcast()
asInstanceOf
on the full reference type,
which would unfortunately also work on non-ActorRefs.public akka.actor.ActorPath path()
ActorPath
and more than one Actor instance can exist with the same path at different
points in time, but not concurrently.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object