t

lerna.akka.entityreplication.typed

ReplicatedEntityRef

trait ReplicatedEntityRef[-M] extends RecipientRef[M]

Self Type
ReplicatedEntityRef[M] with InternalRecipientRef[M]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedEntityRef
  2. RecipientRef
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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", _))
  2. 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)

  3. abstract def entityId: String

    The identifier for the entity referenced by this ReplicatedEntityRef

  4. 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
  5. abstract def typeKey: ReplicatedEntityTypeKey[M]

    The ReplicatedEntityTypeKey associated with this ReplicatedEntityRef

Concrete Value Members

  1. def !(message: M): Unit

    Send a message to the entity referenced by this ReplicatedEntityRef using *at-most-once* messaging semantics.

  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. 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))
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from RecipientRef[M]

Inherited from AnyRef

Inherited from Any

Ungrouped