Interface FutureEventListener<T>
-
- All Superinterfaces:
java.util.function.BiConsumer<T,java.lang.Throwable>
- All Known Implementing Classes:
OpStatsListener
public interface FutureEventListener<T> extends java.util.function.BiConsumer<T,java.lang.Throwable>
Provide similar interface (as twitter future) over java future.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(T t, java.lang.Throwable throwable)
void
onFailure(java.lang.Throwable cause)
void
onSuccess(T value)
-