Package com.kheops.jmap.server
Class JMapServerThreadPool
- All Implemented Interfaces:
KSchedulerClient
-
Field Summary
Fields inherited from class com.kheops.util.KObjectPool
cleanupPeriod, recyclePeriod, shrinkTime, TIMEOUT_UNDEFINED, TIMEOUT_UNLIMITED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionborrowThread(long timeout, TimeUnit unit) create()Creates the object encapsulating the appropriate objectvoidexpire(JMapServerClientThread clientThread) This method closes the objectvoidreturnThread(JMapServerClientThread clientThread) booleanvalidate(JMapServerClientThread clientThread) This method checks if the object is validMethods inherited from class com.kheops.util.KObjectPool
apply, checkIn, checkOut, checkOut, close, createUnlockedInstance, getDefaultTimeout, getId, getMonitoringInfo, getPoolMaximumSize, getPoolSize, getPoolUsageCount, getPoolUsagePeak, getSystemDefaultTimeout, initialize, initialize, initialize, internalErrorOccurred, reset, resourceAdded, schCallback, setDefaultTimeout, setPoolMaximumSize, setPoolMinimumSize
-
Constructor Details
-
JMapServerThreadPool
- Throws:
Exception
-
-
Method Details
-
validate
Description copied from class:KObjectPoolThis method checks if the object is valid- Specified by:
validatein classKObjectPool<JMapServerClientThread>- Parameters:
clientThread- object to validate- Returns:
- true if the object is valid false otherwise
-
expire
Description copied from class:KObjectPoolThis method closes the object- Specified by:
expirein classKObjectPool<JMapServerClientThread>- Parameters:
clientThread- the object to be expired
-
create
Description copied from class:KObjectPoolCreates the object encapsulating the appropriate object- Specified by:
createin classKObjectPool<JMapServerClientThread>- Returns:
- the corresponding object
-
borrowThread
- Throws:
Exception
-
borrowThread
- Throws:
Exception
-
returnThread
-