Package org.apache.pekko.pattern
Interface PromiseRef<T>
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
Modifier and TypeMethodDescriptionscala.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.ref()ActorRef associated with this PromiseRef.Converts this PromiseRef to FutureRef, effectively narrowing it's API.
-
Method Details
-
ref
ActorRef ref()ActorRef associated with this PromiseRef. -
promise
scala.concurrent.Promise<T> promise()Promise associated with this PromiseRef. -
future
scala.concurrent.Future<T> future()Future containing the value of the Promise associated with this PromiseRef. -
toFutureRef
Converts this PromiseRef to FutureRef, effectively narrowing it's API.
-