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>
Callback that accepts a Handle that remains open for the duration of the callback invocation. The Handle is not guaranteed to remain valid past the return from the callback.
  • Method Summary

    Modifier and Type
    Will be invoked with an open Handle.
  • Method Details

    • withHandle

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