Package davmail.http

Class DavMailIdleConnectionEvictor

java.lang.Object
davmail.http.DavMailIdleConnectionEvictor

public class DavMailIdleConnectionEvictor extends Object
Single thread for all connection managers. Close idle connections
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.log4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
    Add a connection manager to the eviction monitor set.
    static void
    removeConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
    Remove the connection manager from the eviction monitor set.
    static void
    Shutdown the connection manager evictor thread.

    Methods inherited from class java.lang.Object

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

    • LOGGER

      protected static final org.apache.log4j.Logger LOGGER
  • Constructor Details

    • DavMailIdleConnectionEvictor

      public DavMailIdleConnectionEvictor()
  • Method Details

    • shutdown

      public static void shutdown() throws InterruptedException
      Shutdown the connection manager evictor thread.
      Throws:
      InterruptedException - on error
    • addConnectionManager

      public static void addConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
      Add a connection manager to the eviction monitor set.
      Parameters:
      connectionManager - connection manager to monitor
    • removeConnectionManager

      public static void removeConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
      Remove the connection manager from the eviction monitor set.
      Parameters:
      connectionManager - connection manager to remove