Class DbPoolSlot
Slot of a
Closed sessions are removed from the pool. Remote sessions not belonging to a session group are kept alive while idle.
DbPool holding a pooled session.Closed sessions are removed from the pool. Remote sessions not belonging to a session group are kept alive while idle.
-
Constructor Summary
ConstructorsConstructorDescriptionDbPoolSlot(Pool<Session> pool, int slotNumber, Session session) Creates a slot. -
Method Summary
Modifier and TypeMethodDescriptionprotected TentackleRuntimeExceptioncreateException(String msg) Creates the exception thrown by this slot.booleanReturns whether the resource is obsolete and should be closed.
Checked byPool.monitor()for unused resources only.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.
Checked byPool.monitor()for unused resources only.- Returns:
- true if obsolete
-
createException
Description copied from class:AbstractPoolSlotCreates the exception thrown by this slot.- Specified by:
createExceptionin classAbstractPoolSlot<Session>- Parameters:
msg- the message- Returns:
- the exception
-