Package org.jdbi.v3.core
Interface HandleConsumer<X extends java.lang.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 HandleConsumer<X extends java.lang.Exception>Callback that accepts aHandleand returns no result. The provided Handle may not remain valid past return from the consumer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HandleCallback<java.lang.Void,X>asCallback()voiduseHandle(Handle handle)Will be invoked with an open Handle.
-
-
-
Method Detail
-
useHandle
void useHandle(Handle handle) throws X extends java.lang.Exception
Will be invoked with an open Handle. The handle may be closed when this callback returns.
-
asCallback
default HandleCallback<java.lang.Void,X> asCallback()
-
-