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