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 TypeMethodDescriptionvoid
abort()
void
close()
boolean
isClosed()
void
sendCloseMessage
(PGStream pgStream)
-
Constructor Details
-
QueryExecutorCloseAction
-
-
Method Details
-
isClosed
public boolean isClosed() -
abort
public void abort() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
sendCloseMessage
- Throws:
IOException
-