Class PoolCleaner

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service

    
    public final class PoolCleaner
    extends AbstractIdleService
                        

    Cleans the pools of HttpClientConnectionManagers with configured periods and timeouts.

    This is necessary to ensure we always close our clients at some point, triggering the onLastIntercept callback.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class PoolCleaner.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit addPool(HttpClientConnectionManager pool)
      • Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

        addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync, toString
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • addPool

         final Unit addPool(HttpClientConnectionManager pool)