Class AbstractLdapPool.PooledLdap<T extends BaseLdap>

  • Type Parameters:
    T - type of ldap object
    Enclosing class:
    AbstractLdapPool<T extends BaseLdap>

    protected static class AbstractLdapPool.PooledLdap<T extends BaseLdap>
    extends java.lang.Object
    PooledLdap contains an ldap object that is participating in a pool. Used to track how long an ldap object has been in either the available or active queues.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int HASH_CODE_SEED
      hash code seed.
    • Constructor Summary

      Constructors 
      Constructor Description
      PooledLdap​(T t)
      Creates a new PooledLdap with the supplied ldap object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Returns whether the supplied Object contains the same data as this bean.
      long getCreatedTime()
      Returns the time this object was created.
      T getLdap()
      Returns the ldap object.
      int hashCode()
      This returns the hash code for this object.
      • Methods inherited from class java.lang.Object

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

      • HASH_CODE_SEED

        protected static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PooledLdap

        public PooledLdap​(T t)
        Creates a new PooledLdap with the supplied ldap object.
        Parameters:
        t - ldap object
    • Method Detail

      • getLdap

        public T getLdap()
        Returns the ldap object.
        Returns:
        underlying ldap object
      • getCreatedTime

        public long getCreatedTime()
        Returns the time this object was created.
        Returns:
        creation time
      • equals

        public boolean equals​(java.lang.Object o)
        Returns whether the supplied Object contains the same data as this bean.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - Object
        Returns:
        boolean
      • hashCode

        public int hashCode()
        This returns the hash code for this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int