Library: Data
Package: SessionPooling
Header: Poco/Data/PooledSessionHolder.h
This class is used by SessionPool to manage SessionImpl objects.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Functions: access, idle, owner, session
Inherited Functions: duplicate, referenceCount, release
PooledSessionHolder(
    SessionPool & owner,
    SessionImpl * pSessionImpl
);
Creates the PooledSessionHolder.
 
 Destroys the PooledSessionHolder.
 
 void access();
Updates the last access timestamp.
 
 int idle() const;
Returns the number of seconds the session has not been used.
 
 SessionPool & owner();
Returns a reference to the SessionHolder's owner.
 
 SessionImpl * session();
Returns a pointer to the SessionImpl.