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 for Async 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 the handleException(Throwable) as an alias for the functional Function.apply(Object) method.
      • Methods inherited from interface java.util.function.Consumer

        accept, andThen
      • Methods inherited from interface java.util.function.Function

        andThen, apply, compose
    • Method Detail

      • handleException

        default void handleException​(java.lang.Throwable t)
        Use the handleException(Throwable) as an alias for the functional Function.apply(Object) method.
        Parameters:
        t - a Throwable object.