Package org.postgresql.core
Class QueryExecutorCloseAction
java.lang.Object
org.postgresql.core.QueryExecutorCloseAction
- All Implemented Interfaces:
Closeable,AutoCloseable
The action performs connection cleanup, so it is properly terminated from the backend
point of view.
Implementation note: it should keep only the minimum number of object references
to reduce heap usage in case the user abandons connection without closing it first.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidclose()booleanisClosed()voidsendCloseMessage(PGStream pgStream)
-
Constructor Details
-
QueryExecutorCloseAction
-
-
Method Details
-
isClosed
public boolean isClosed() -
abort
public void abort() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
sendCloseMessage
- Throws:
IOException
-