-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FutureContextListener<C,V>
Listens to the result of aFuture
. The result of the asynchronous operation is notified once this listener is added by callingFuture.addListener(Object, FutureContextListener)
.Future f = new DefaultPromise(..); f.addListener(context, (context, future) -> { .. });
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
operationComplete(C context, Future<? extends V> future)
Invoked when the operation associated with theFuture
has been completed.
-