Package akka.pattern

Class PromiseActorRef

    • Constructor Detail

      • PromiseActorRef

        public PromiseActorRef()
    • Method Detail

      • apply

        public static PromiseActorRef apply​(ActorRefProvider provider,
                                            Timeout timeout,
                                            java.lang.Object targetName,
                                            java.lang.String messageClassName,
                                            ActorRef sender,
                                            scala.Function1<java.lang.String,​java.lang.Throwable> onTimeout)
      • apply$default$5

        public static ActorRef apply$default$5()
      • apply$default$6

        public static scala.Function1<java.lang.String,​java.lang.Throwable> apply$default$6()
      • result

        public scala.concurrent.Promise<java.lang.Object> result()
      • messageClassName

        public java.lang.String messageClassName()
      • messageClassName_$eq

        public void messageClassName_$eq​(java.lang.String x$1)
      • path

        public ActorPath path()
        Contract of this method: Must always return the same ActorPath, which must have been registered if we haven't been stopped yet.
        Specified by:
        path in class ActorRef
      • $bang

        public void $bang​(java.lang.Object message,
                          ActorRef sender)
        Description copied from interface: ScalaActorRef
        Sends a one-way asynchronous message. E.g. fire-and-forget semantics.

        If invoked from within an actor then the actor reference is implicitly passed on as the implicit 'sender' argument.

        This actor 'sender' reference is then available in the receiving actor in the 'sender()' member variable, if invoked from within an Actor. If not then no sender is available.

           actor ! message

        Specified by:
        $bang in interface MinimalActorRef
        Specified by:
        $bang in interface ScalaActorRef
      • ask

        public scala.concurrent.Future<java.lang.Object> ask​(ActorSelection actorSel,
                                                             java.lang.Object message,
                                                             Timeout timeout)
      • ask

        public scala.concurrent.Future<java.lang.Object> ask​(ActorRef actorRef,
                                                             java.lang.Object message,
                                                             Timeout timeout)
      • onComplete

        public void onComplete​(java.lang.Object message,
                               boolean alreadyCompleted)
      • onTimeout

        public void onTimeout​(Timeout timeout)