Class DbPoolSlot
Session managed by the session pool.
-
Constructor Summary
ConstructorsConstructorDescriptionDbPoolSlot(Pool<Session> pool, int slotNumber, Session session) Creates a slot. -
Method Summary
Modifier and TypeMethodDescriptionprotected TentackleRuntimeExceptioncreateException(String msg) Creates an exception.booleanReturns whether the resource is obsolete and should be closed.Methods inherited from class AbstractPoolSlot
close, createSlotStr, getFirstUse, getIdleMinutes, getMdcStr, getPool, getPoolable, getReferencedPoolable, getSlotNumber, getUnusedSince, getUsedMinutes, getUsedSince, getUsingThreadStr, isUnreferenced, toString, unUse, use
-
Constructor Details
-
DbPoolSlot
-
-
Method Details
-
isObsolete
public boolean isObsolete()Description copied from interface:PoolSlotReturns whether the resource is obsolete and should be closed.- Returns:
- true if obsolete
-
createException
Description copied from class:AbstractPoolSlotCreates an exception.- Specified by:
createExceptionin classAbstractPoolSlot<Session>- Parameters:
msg- the message- Returns:
- the exception
-