Interface Callback<P,​R>

  • Type Parameters:
    P - the type of the callback parameter
    R - the type of the callback result

    public interface Callback<P,​R>
    Represents a callback which should be called after work was done. This interface is similar to the Callable interface, with the exception that the callback method does not throw any catching exception. Without this restriction the caller does not have to catch any exception.
    Author:
    Christopher Zell
    • Method Detail

      • callback

        R callback​(P param)
        The callback which should be called/executed after work was done.
        Parameters:
        param - the parameter for the callback
        Returns:
        the result of the callback