Class ClientActorContext

    • Method Detail

      • dispatchers

        public @NonNull Dispatchers dispatchers()
      • ticker

        public @NonNull Ticker ticker()
        Return the time ticker for this ClientActorContext. This should be used for in all time-tracking done within a client actor. Subclasses of ClientActorBehavior are encouraged to use Stopwatch.
        Returns:
        Client actor time source
      • executeInActor

        public <T extends BackendInfo> void executeInActor​(@NonNull InternalCommand<T> command)
        Execute a command in the context of the client actor.
        Type Parameters:
        T - BackendInfo type
        Parameters:
        command - Block of code which needs to be execute
      • executeInActor

        public <T extends BackendInfo> akka.actor.Cancellable executeInActor​(@NonNull InternalCommand<T> command,
                                                                             scala.concurrent.duration.FiniteDuration delay)
      • self

        public final @NonNull akka.actor.ActorRef self()