trait ReplicatedEntityRef[-M] extends RecipientRef[M]
- Self Type
- ReplicatedEntityRef[M] with InternalRecipientRef[M]
- Alphabetic
- By Inheritance
- ReplicatedEntityRef
- RecipientRef
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def ask[Reply](message: (ActorRef[Reply]) => M)(implicit timeout: Timeout): Future[Reply]
Allows to "ask" this ReplicatedEntityRef for a reply.
Allows to "ask" this ReplicatedEntityRef for a reply.
Note that if you are implementing an actor, you should prefer akka.actor.typed.scaladsl.ActorContext.ask as that provides better safety.
Example usage:
case class Echo(message: String, replyTo: ActorRef[EchoResponse]) case class EchoResponse(message: String) implicit val timeout = Timeout(3.seconds) val target: ReplicatedEntityRef[Echo] = ... val response: Future[EchoResponse] = target.ask(Echo("Hello, world", _))
- abstract def askWithStatus[Reply](massage: (ActorRef[StatusReply[Reply]]) => M)(implicit timeout: Timeout): Future[Reply]
The same as ask but only for requests that result in a response of type akka.pattern.StatusReply.
The same as ask but only for requests that result in a response of type akka.pattern.StatusReply. If the response is a akka.pattern.StatusReply.Success the returned future is completed successfully with the wrapped response. If the response is a akka.pattern.StatusReply.Error the returned future will be failed with the exception in the error (normally a akka.pattern.StatusReply.ErrorMessage)
- abstract def entityId: String
The identifier for the entity referenced by this ReplicatedEntityRef
- abstract def tell(message: M): Unit
Send a message to the entity referenced by this ReplicatedEntityRef using *at-most-once* messaging semantics.
Send a message to the entity referenced by this ReplicatedEntityRef using *at-most-once* messaging semantics.
- Definition Classes
- ReplicatedEntityRef → RecipientRef
- abstract def typeKey: ReplicatedEntityTypeKey[M]
The ReplicatedEntityTypeKey associated with this ReplicatedEntityRef
Concrete Value Members
- def !(message: M): Unit
Send a message to the entity referenced by this ReplicatedEntityRef using *at-most-once* messaging semantics.
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ?[Reply](message: (ActorRef[Reply]) => M)(implicit timeout: Timeout): Future[Reply]
Allows to "ask" this ReplicatedEntityRef for a reply.
Allows to "ask" this ReplicatedEntityRef for a reply.
Note that if you are implementing an actor, you should prefer akka.actor.typed.scaladsl.ActorContext.ask as that provides better safety.
Example usage:
case class Echo(message: String, replyTo: ActorRef[EchoResponse]) case class EchoResponse(message: String) implicit val timeout = Timeout(3.seconds) val target: ReplicatedEntityRef[Echo] = ... val response: Future[EchoResponse] = target ? (replyTo => Echo("Hello, world", replyTo))
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()