Class H2AsyncClientBuilder.IdleConnectionEvictor

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

    static class H2AsyncClientBuilder.IdleConnectionEvictor
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Thread thread  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void shutdown()  
      void start()  
      • Methods inherited from class java.lang.Object

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

      • thread

        private final java.lang.Thread thread
    • Constructor Detail

      • IdleConnectionEvictor

        public IdleConnectionEvictor​(InternalH2ConnPool connPool,
                                     org.apache.hc.core5.util.TimeValue maxIdleTime)
    • Method Detail

      • start

        public void start()
      • shutdown

        public void shutdown()
      • 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