Package cn.sliew.milky.concurrent
Interface FutureListener<F extends Future<?>>
-
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
ProgressiveFutureListener<F>
public interface FutureListener<F extends Future<?>> extends EventListener
Listens to the result of aFuture. The result of the asynchronous operation is notified once this listener is added by callingFuture.addListener(FutureListener).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonComplete(F future)Invoked when the operation associated with theFuturehas been completed.
-