Package org.apache.activemq.util
Class Promise<T>
java.lang.Object
org.apache.activemq.util.PromiseCallback<T>
org.apache.activemq.util.Promise<T>
Used to implement callback based result passing of a promised computation. Can be converted to a future using the future() method.
- Author:
- Hiram Chirino
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfuture()voidonComplete(T value, Throwable error) voidwatch(PromiseCallback<T> callback)
-
Constructor Details
-
Promise
public Promise()
-
-
Method Details
-
future
-
watch
-
onComplete
- Specified by:
onCompletein classPromiseCallback<T>
-