Interface HandleCallback<T,​X extends Exception>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface HandleCallback<T,​X extends Exception>
    Author:
    eric.wittmann@gmail.com
    • Method Detail

      • withHandle

        T withHandle​(Handle handle)
              throws X extends Exception
        Will be invoked with an open Handle. The handle may be closed when this callback returns.
        Parameters:
        handle - Handle to be used only within scope of this callback
        Returns:
        The return value of the callback
        Throws:
        X - optional exception thrown by the callback
        X extends Exception