Uses of Class
org.postgresql.pljava.internal.Checked.Closing
-
Packages that use Checked.Closing Package Description org.postgresql.pljava.internal Java classes implementing core PL/Java behavior. -
-
Uses of Checked.Closing in org.postgresql.pljava.internal
Methods in org.postgresql.pljava.internal that return Checked.Closing Modifier and Type Method Description static <T,S extends BaseStream<T,S>,E extends Exception>
Checked.Closing<S,E>Checked. closing(S stream, Checked.Runnable<E> closer)
Given a stream and a lambda that should be invoked when it is closed, construct a new stream that runs that lambda when closed, and return aClosing
instance with the new stream as its payload, which will be closed by theclose
action.static <T,E extends Exception>
Checked.Closing<T,E>Checked. closing(T payload, Checked.AutoCloseable<E> closer)
Wrap some payload and a 'closer' lambda as aClosing
instance that can supply the payload and implementsAutoCloseable
using the lambda; useful in atry
-with-resources when the payload itself does not implementAutoCloseable
.
-