Class HttpRequest.CloseOperation<V>

  • Type Parameters:
    V -
    All Implemented Interfaces:
    java.util.concurrent.Callable<V>
    Enclosing class:
    HttpRequest

    protected abstract static class HttpRequest.CloseOperation<V>
    extends HttpRequest.Operation<V>
    Class that ensures a Closeable gets closed with proper exception handling.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CloseOperation​(java.io.Closeable closeable, boolean ignoreCloseExceptions)
      Create closer for operation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void done()
      Operation complete callback
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • closeable

        private final java.io.Closeable closeable
      • ignoreCloseExceptions

        private final boolean ignoreCloseExceptions
    • Constructor Detail

      • CloseOperation

        protected CloseOperation​(java.io.Closeable closeable,
                                 boolean ignoreCloseExceptions)
        Create closer for operation
        Parameters:
        closeable -
        ignoreCloseExceptions -