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.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 newPooledLdap
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 suppliedObject
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.
-
-
-
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 newPooledLdap
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 suppliedObject
contains the same data as this bean.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
-Object
- Returns:
boolean
-
hashCode
public int hashCode()
This returns the hash code for this object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
int
-
-