Package org.opennms.core.tasks
Interface Callback<T>
-
- All Superinterfaces:
java.util.function.Consumer<T>,java.util.function.Function<Throwable,T>
public interface Callback<T> extends java.util.function.Consumer<T>, java.util.function.Function<Throwable,T>
This interface is used as a completion handler and exception handler forAsyncoperations.- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidhandleException(Throwable t)Use thehandleException(Throwable)as an alias for the functionalFunction.apply(Object)method.
-
-
-
Method Detail
-
handleException
default void handleException(Throwable t)
Use thehandleException(Throwable)as an alias for the functionalFunction.apply(Object)method.- Parameters:
t- aThrowableobject.
-
-