Package akka.pattern

Class PromiseRefImpl<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      PromiseRefImpl​(ActorRef ref, scala.concurrent.Promise<T> promise)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.concurrent.Promise<T> promise()
      Promise associated with this PromiseRef.
      ActorRef ref()
      ActorRef associated with this PromiseRef.
      FutureRef<T> toFutureRef()
      Converts this PromiseRef to FutureRef, effectively narrowing it's API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PromiseRefImpl

        public PromiseRefImpl​(ActorRef ref,
                              scala.concurrent.Promise<T> promise)
    • Method Detail

      • promise

        public scala.concurrent.Promise<T> promise()
        Description copied from interface: PromiseRef
        Promise associated with this PromiseRef.
        Specified by:
        promise in interface PromiseRef<T>
      • toFutureRef

        public FutureRef<T> toFutureRef()
        Description copied from interface: PromiseRef
        Converts this PromiseRef to FutureRef, effectively narrowing it's API.
        Specified by:
        toFutureRef in interface PromiseRef<T>