Class DebugRef<T>
- java.lang.Object
-
- akka.actor.testkit.typed.internal.DebugRef<T>
-
- All Implemented Interfaces:
ActorRef<T>
,ActorRefImpl<T>
,InternalRecipientRef<T>
,RecipientRef<T>
,java.io.Serializable
,java.lang.Comparable<ActorRef<?>>
public final class DebugRef<T> extends java.lang.Object implements ActorRef<T>, ActorRefImpl<T>, InternalRecipientRef<T>
INTERNAL API- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.actor.typed.ActorRef
ActorRef.ActorRefOps<T>, ActorRef.ActorRefOps$
-
Nested classes/interfaces inherited from interface akka.actor.typed.RecipientRef
RecipientRef.RecipientRefOps<T>, RecipientRef.RecipientRefOps$
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMessage()
boolean
hasSignal()
boolean
hasSomething()
boolean
isLocal()
boolean
isTerminated()
ActorPath
path()
The hierarchical path name of the referenced Actor.ActorRefProvider
provider()
Get a reference to the actor ref provider which created this ref.scala.collection.immutable.List<scala.util.Either<SystemMessage,T>>
receiveAll()
T
receiveMessage()
SystemMessage
receiveSignal()
void
sendSystem(SystemMessage signal)
void
tell(T message)
Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.typed.ActorRef
writeReplace
-
Methods inherited from interface akka.actor.typed.internal.ActorRefImpl
compareTo, equals, hashCode, narrow, toString, unsafeUpcast
-
-
-
-
Constructor Detail
-
DebugRef
public DebugRef(ActorPath path, boolean isLocal)
-
-
Method Detail
-
hasMessage
public boolean hasMessage()
-
hasSignal
public boolean hasSignal()
-
hasSomething
public boolean hasSomething()
-
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interfaceActorRefImpl<T>
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfaceInternalRecipientRef<T>
- Returns:
true
if the actor is locally known to be terminated,false
if alive or uncertain.
-
path
public ActorPath path()
Description copied from interface:ActorRef
The hierarchical path name of the referenced Actor. The lifecycle of the ActorRef is fully contained within the lifecycle of theActorPath
and more than one Actor instance can exist with the same path at different points in time, but not concurrently.
-
provider
public ActorRefProvider provider()
Description copied from interface:InternalRecipientRef
Get a reference to the actor ref provider which created this ref.- Specified by:
provider
in interfaceInternalRecipientRef<T>
-
receiveAll
public scala.collection.immutable.List<scala.util.Either<SystemMessage,T>> receiveAll()
-
receiveMessage
public T receiveMessage()
-
receiveSignal
public SystemMessage receiveSignal()
-
sendSystem
public void sendSystem(SystemMessage signal)
- Specified by:
sendSystem
in interfaceActorRefImpl<T>
-
-