edu.vt.middleware.ldap.pool
Class AbstractLdapPool.PooledLdap<T extends BaseLdap>

java.lang.Object
  extended by 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 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
protected static int HASH_CODE_SEED
          hash code seed.
 
Constructor Summary
AbstractLdapPool.PooledLdap(T t)
          Creates a new PooledLdap with the supplied ldap object.
 
Method Summary
 boolean equals(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

AbstractLdapPool.PooledLdap

public AbstractLdapPool.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(Object o)
Returns whether the supplied Object contains the same data as this bean.

Overrides:
equals in class Object
Parameters:
o - Object
Returns:
boolean

hashCode

public int hashCode()
This returns the hash code for this object.

Overrides:
hashCode in class Object
Returns:
int


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.