Top Description Fields Constructors Methods
org.postgresql.util

pack-priv Class TempFileHolder

extends Object
implements LazyCleaner.CleaningAction<IOException>
Class Inheritance
All Implemented Interfaces
org.postgresql.util.LazyCleaner.CleaningAction
Static Imports
org.postgresql.util.internal.Nullness.castNonNull

The action deletes temporary file in case the user submits a large input stream, and then abandons the statement.

Field Summary

Modifier and TypeField and Description
private static final Logger
private @Nullable InputStream
private @Nullable Path

Constructor Summary

AccessConstructor and Description
pack-priv
TempFileHolder(Path tempFile)

Method Summary

Modifier and TypeMethod and Description
public InputStream
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
streamback to summary
private @Nullable InputStream stream
tempFileback to summary
private @Nullable Path tempFile

Constructor Detail

TempFileHolderback to summary
pack-priv TempFileHolder(Path tempFile)

Method Detail

getStreamback to summary
public InputStream getStream() throws IOException
onCleanback to summary
public void onClean(boolean leak) throws IOException

Implements org.postgresql.util.LazyCleaner.CleaningAction.onClean.

Annotations
@Override