com.safeidentity.common
Class ObjectPool
java.lang.Object
com.safeidentity.common.ObjectPool
- Direct Known Subclasses:
- LdapConnectionPool
- public abstract class ObjectPool
- extends java.lang.Object
- Author:
- jkkang
Constructor Summary |
protected |
ObjectPool(boolean neverExpired,
long expireTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObjectPool
protected ObjectPool(boolean neverExpired,
long expireTime)
close
protected void close()
create
protected abstract java.lang.Object create()
throws java.lang.Exception
- Throws:
java.lang.Exception
validate
protected abstract boolean validate(java.lang.Object o)
expire
protected abstract void expire(java.lang.Object o)
checkOut
protected java.lang.Object checkOut()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkIn
protected void checkIn(java.lang.Object o)
cleanUp
protected void cleanUp()
getLastCheckoutTime
public long getLastCheckoutTime()
getMaxLockCount
public int getMaxLockCount()
setMaxLockCount
public void setMaxLockCount(int count)
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
getCurrentMaxLock
public int getCurrentMaxLock()
toString
public java.lang.String toString()
Copyright © 2004 SoftForum Corp. All Rights Reserved.