public interface NotifyingFuture<T> extends Future<T>
FutureListener
for more details.
attachListener(FutureListener)
returns the same future instance, which is useful for 'building' a future.
E.g.,
Future f = cache.clearAsync().attachListener(new MyCustomListener());
Modifier and Type | Method and Description |
---|---|
NotifyingFuture<T> |
attachListener(FutureListener<T> listener)
Attaches a listener and returns the same future instance, to allow for 'building'.
|
NotifyingFuture<T> attachListener(FutureListener<T> listener)
listener
- listener to attachCopyright © 2012 JBoss by Red Hat. All Rights Reserved.