Class ValidatePoolTask<T extends BaseLdap>

  • Type Parameters:
    T - type of ldap object
    All Implemented Interfaces:
    java.lang.Runnable

    public class ValidatePoolTask<T extends BaseLdap>
    extends java.util.TimerTask
    ValidatePoolTask is a periodic task that checks that every ldap object in the pool is valid. Objects that don't pass validation are removed.
    Version:
    $Revision: 2790 $ $Date: 2013-07-11 19:50:53 +0200 (Thu, 11 Jul 2013) $
    Author:
    Middleware Services
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log logger
      Log for this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidatePoolTask​(LdapPool<T> lp)
      Creates a new task to periodically validate the supplied pool.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      This attempts to validate idle objects in a pool.
      • Methods inherited from class java.util.TimerTask

        cancel, scheduledExecutionTime
      • Methods inherited from class java.lang.Object

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

      • logger

        protected final org.apache.commons.logging.Log logger
        Log for this class.
    • Constructor Detail

      • ValidatePoolTask

        public ValidatePoolTask​(LdapPool<T> lp)
        Creates a new task to periodically validate the supplied pool.
        Parameters:
        lp - ldap pool to periodically validate
    • Method Detail

      • run

        public void run()
        This attempts to validate idle objects in a pool. See LdapPool.validate().
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask