Package org.postgresql.core

# Class QueryExecutorCloseAction

java.lang.Object
org.postgresql.core.QueryExecutorCloseAction

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

public class QueryExecutorCloseAction extends Object implements Closeable
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
  Constructor
  Description
  `QueryExecutorCloseAction(PGStream pgStream)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `abort()`
  `void`
  `close()`
  `boolean`
  `isClosed()`
  `void`
  `sendCloseMessage(PGStream pgStream)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### QueryExecutorCloseAction

    public QueryExecutorCloseAction(PGStream pgStream)

- ## Method Details

  - ### isClosed

    public boolean isClosed()

  - ### abort

    public void abort()

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Throws:
      `IOException`

  - ### sendCloseMessage

    public void sendCloseMessage(PGStream pgStream) throws IOException
    Throws:
      `IOException`