Uses of Class
org.postgresql.pljava.internal.Checked.Closing
Packages that use Checked.Closing
-
Uses of Checked.Closing in org.postgresql.pljava.internal
Methods in org.postgresql.pljava.internal that return Checked.ClosingModifier and TypeMethodDescriptionstatic <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 aClosinginstance with the new stream as its payload, which will be closed by thecloseaction.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 aClosinginstance that can supply the payload and implementsAutoCloseableusing the lambda; useful in atry-with-resources when the payload itself does not implementAutoCloseable.