Class QueryExecutorCloseAction

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class QueryExecutorCloseAction
    extends java.lang.Object
    implements java.io.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 Detail

      • QueryExecutorCloseAction

        public QueryExecutorCloseAction​(PGStream pgStream)
    • Method Detail

      • isClosed

        public boolean isClosed()
      • abort

        public void abort()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • sendCloseMessage

        public void sendCloseMessage​(PGStream pgStream)
                              throws java.io.IOException
        Throws:
        java.io.IOException