org.ephman.abra.database
Interface DatabaseSessionPool

All Known Implementing Classes:
JDBCDatabaseSessionPool

public interface DatabaseSessionPool


Method Summary
 DatabaseSession get()
          Get an available session from the pool.
 void put(DatabaseSession session)
          Return a session to the pool.
 

Method Detail

get

public DatabaseSession get()
Get an available session from the pool.

Returns:
database session for use by a thread, null if none are available

put

public void put(DatabaseSession session)
         throws java.lang.Exception
Return a session to the pool.

Parameters:
session - session to return to the pool
Throws:
an - exception if the pool is filled up
java.lang.Exception