Package org.jgroups.util
Interface NotifyingFuture<T>
- All Superinterfaces:
Future<T>
- All Known Implementing Classes:
ExecutionService.DistributedFuture,GroupRequest,MultiRequest,NullFuture,Request,UnicastRequest
A sub-interface of a Future, that allows for listeners to be attached so that observers can be notified when the
future completes.
See
FutureListener for more details.
- Since:
- 2.9
- Author:
- Manik Surtani
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Method Summary
Modifier and TypeMethodDescriptionsetListener(FutureListener<T> listener) Attaches a listener and returns the same future instance, to allow for 'building' futures.Methods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Method Details
-
setListener
Attaches a listener and returns the same future instance, to allow for 'building' futures.- Parameters:
listener- listener to attach- Returns:
- the same future instance
-