Class DbPoolSlot

java.lang.Object
org.tentackle.misc.AbstractPoolSlot<Session>
org.tentackle.dbms.DbPoolSlot
All Implemented Interfaces:
org.tentackle.misc.PoolSlot<Session>

public class DbPoolSlot extends org.tentackle.misc.AbstractPoolSlot<Session>
Session managed by the session pool.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DbPoolSlot(org.tentackle.misc.Pool<Session> pool, int slotNumber, Session session)
    Creates a slot.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.tentackle.common.TentackleRuntimeException
     
    boolean
     

    Methods inherited from class org.tentackle.misc.AbstractPoolSlot

    close, createSlotStr, getFirstUse, getIdleMinutes, getMdcStr, getPool, getPoolable, getReferencedPoolable, getSlotNumber, getUnusedSince, getUsedMinutes, getUsedSince, getUsingThreadStr, isUnreferenced, toString, unUse, use

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DbPoolSlot

      public DbPoolSlot(org.tentackle.misc.Pool<Session> pool, int slotNumber, Session session)
      Creates a slot.
      Parameters:
      pool - the pool
      slotNumber - the slot number within the pool (== pool-ID - 1)
      session - the managed session
  • Method Details

    • isObsolete

      public boolean isObsolete()
    • createException

      protected org.tentackle.common.TentackleRuntimeException createException(String msg)
      Specified by:
      createException in class org.tentackle.misc.AbstractPoolSlot<Session>