Trait

akka.persistence.multidc.javadsl.ReplicatedEntity

ActorContext

Related Doc: package ReplicatedEntity

Permalink

trait ActorContext extends AnyRef

Actor context for ReplicatedEntity with somewhat limited capabilities and additional functionality specifically replicated entities.

Not for user extension.

Annotations
@DoNotInherit()
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorContext
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def actorOf(props: Props, name: String): ActorRef

    Permalink

    Create new actor as child of this actor with the given name, which must not be null, empty or start with “$”.

    Create new actor as child of this actor with the given name, which must not be null, empty or start with “$”. If the given name is already in use, an InvalidActorNameException is thrown.

    See akka.actor.Props for details on how to obtain a Props object.

  2. abstract def actorOf(props: Props): ActorRef

    Permalink

    Create new actor as child of this actor and give it an automatically generated name (currently similar to base64-encoded integer count, reversed and with “$” prepended, may change in the future).

    Create new actor as child of this actor and give it an automatically generated name (currently similar to base64-encoded integer count, reversed and with “$” prepended, may change in the future).

    See akka.actor.Props for details on how to obtain a Props object.

  3. abstract def actorSelection(path: ActorPath): ActorSelection

    Permalink

    Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally).

    Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.

  4. abstract def actorSelection(path: String): ActorSelection

    Permalink

    Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally).

    Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.

  5. abstract def findChild(name: String): Optional[ActorRef]

    Permalink

    Get the child with the given name if it exists.

  6. abstract def getChildren(): Iterable[ActorRef]

    Permalink

    Returns all supervised children; this method returns a view (i.e.

    Returns all supervised children; this method returns a view (i.e. a lazy collection) onto the internal collection of children. Targeted lookups should be using child instead for performance reasons:

    val badLookup = context.children find (_.path.name == "kid")
    // should better be expressed as:
    val goodLookup = context.child("kid")
  7. abstract def getDispatcher(): ExecutionContextExecutor

    Permalink

    Returns the dispatcher (MessageDispatcher) that is used for this Actor.

    Returns the dispatcher (MessageDispatcher) that is used for this Actor. Importing this member will place an implicit ExecutionContext in scope.

  8. abstract def getParent(): ActorRef

    Permalink

    Returns the supervising parent ActorRef.

  9. abstract def getReceiveTimeout(): Duration

    Permalink

    Gets the current receive timeout.

    Gets the current receive timeout. When specified, the receive method should be able to handle a akka.actor.ReceiveTimeout message.

  10. abstract def getSelf(): ActorRef

    Permalink

    Commands can be sent with the ReplicatedEntity itself with this ActorRef, or it can be passed in reply messages.

    Commands can be sent with the ReplicatedEntity itself with this ActorRef, or it can be passed in reply messages.

    WARNING: It is not possible to use getSelf from the constructor of the ReplicatedEntity.

  11. abstract def getSender(): ActorRef

    Permalink

    Replies can be sent with this sender() ActorRef an ActorRef that is passed in the command.

  12. abstract def getSystem(): ActorSystem

    Permalink

    The system that the actor belongs to.

    The system that the actor belongs to. Importing this member will place an implicit ActorSystem in scope.

  13. abstract def getTimers(): TimerScheduler

    Permalink

    Start and cancel timers via the enclosed TimerScheduler.

    Start and cancel timers via the enclosed TimerScheduler. Message handlers for timer messages can be registered with CommandHandlerBuilder#onTimer.

  14. abstract def setReceiveTimeout(timeout: Duration): Unit

    Permalink

    Defines the inactivity timeout after which the sending of a akka.actor.ReceiveTimeout message is triggered.

    Defines the inactivity timeout after which the sending of a akka.actor.ReceiveTimeout message is triggered. Message handlers for timer messages can be registered with CommandHandlerBuilder#onReceiveTimeout. 1 millisecond is the minimum supported timeout.

    Please note that the receive timeout might fire and enqueue the ReceiveTimeout message right after another message was enqueued; hence it is not guaranteed that upon reception of the receive timeout there must have been an idle period beforehand as configured via this method.

    Once set, the receive timeout stays in effect (i.e. continues firing repeatedly after inactivity periods). Pass in Duration.Undefined to switch off this feature.

    Messages marked with akka.actor.NotInfluenceReceiveTimeout will not reset the timer. This can be useful when ReceiveTimeout should be fired by external inactivity but not influenced by internal activity, e.g. scheduled tick messages.

  15. abstract def stop(actor: ActorRef): Unit

    Permalink

    Stop the actor pointed to by the given akka.actor.ActorRef; this is an asynchronous operation, i.e.

    Stop the actor pointed to by the given akka.actor.ActorRef; this is an asynchronous operation, i.e. involves a message send. If this method is applied to the self reference from inside an Actor then that Actor is guaranteed to not process any further messages after this call; please note that the processing of the current message will continue, this method does not immediately terminate this actor.

  16. abstract def unwatch(subject: ActorRef): ActorRef

    Permalink

    Unregisters this actor as Monitor for the provided ActorRef.

    Unregisters this actor as Monitor for the provided ActorRef.

    returns

    the provided ActorRef

  17. abstract def watch(subject: ActorRef): ActorRef

    Permalink

    Registers this actor as a Monitor for the provided ActorRef.

    Registers this actor as a Monitor for the provided ActorRef. This actor will receive a Terminated(subject) message when watched actor is terminated. Register handler for the Terminated message with CommandHandlerBuilder.onTerminated

    returns

    the provided ActorRef

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to any2stringadd[ActorContext] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ActorContext, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to ArrowAssoc[ActorContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (ActorContext) ⇒ Boolean, msg: ⇒ Any): ActorContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to Ensuring[ActorContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (ActorContext) ⇒ Boolean): ActorContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to Ensuring[ActorContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): ActorContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to Ensuring[ActorContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): ActorContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to Ensuring[ActorContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to StringFormat[ActorContext] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def [B](y: B): (ActorContext, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorContext to ArrowAssoc[ActorContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ActorContext to any2stringadd[ActorContext]

Inherited by implicit conversion StringFormat from ActorContext to StringFormat[ActorContext]

Inherited by implicit conversion Ensuring from ActorContext to Ensuring[ActorContext]

Inherited by implicit conversion ArrowAssoc from ActorContext to ArrowAssoc[ActorContext]

Ungrouped