org.apache.activemq.util
Class Promise<T>
java.lang.Object
org.apache.activemq.util.PromiseCallback<T>
org.apache.activemq.util.Promise<T>
public class Promise<T>
- extends PromiseCallback<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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Promise
public Promise()
future
public Future<T> future()
watch
public void watch(PromiseCallback<T> callback)
onComplete
public void onComplete(T value,
Throwable error)
- Specified by:
onComplete in class PromiseCallback<T>
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.