Package akka.pattern

Interface PromiseRef<T>

  • All Known Implementing Classes:
    AskPromiseRef, PromiseRefImpl

    public interface PromiseRef<T>
    A combination of a Promise and an ActorRef associated with it, which points to an actor performing a task which will eventually resolve the Promise.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      scala.concurrent.Future<T> future()
      Future containing the value of the Promise associated with this PromiseRef.
      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.
    • Method Detail

      • ref

        ActorRef ref()
        ActorRef associated with this PromiseRef.
        Returns:
        (undocumented)
      • promise

        scala.concurrent.Promise<T> promise()
        Promise associated with this PromiseRef.
        Returns:
        (undocumented)
      • future

        scala.concurrent.Future<T> future()
        Future containing the value of the Promise associated with this PromiseRef.
        Returns:
        (undocumented)
      • toFutureRef

        FutureRef<T> toFutureRef()
        Converts this PromiseRef to FutureRef, effectively narrowing it's API.
        Returns:
        (undocumented)