Package edu.vt.middleware.ldap.pool
Class AbstractLdapPool.PooledLdap<T extends BaseLdap>
- java.lang.Object
-
- edu.vt.middleware.ldap.pool.AbstractLdapPool.PooledLdap<T>
-
- Type Parameters:
T- type of ldap object
- Enclosing class:
- AbstractLdapPool<T extends BaseLdap>
protected static class AbstractLdapPool.PooledLdap<T extends BaseLdap> extends java.lang.ObjectPooledLdapcontains 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 intHASH_CODE_SEEDhash code seed.
-
Constructor Summary
Constructors Constructor Description PooledLdap(T t)Creates a newPooledLdapwith the supplied ldap object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Returns whether the suppliedObjectcontains the same data as this bean.longgetCreatedTime()Returns the time this object was created.TgetLdap()Returns the ldap object.inthashCode()This returns the hash code for this object.
-
-
-
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 newPooledLdapwith 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 suppliedObjectcontains the same data as this bean.- Overrides:
equalsin classjava.lang.Object- Parameters:
o-Object- Returns:
boolean
-
hashCode
public int hashCode()
This returns the hash code for this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
int
-
-