PooliT v2.0

org.ascentphase.poolit
Interface PoolHandler

All Known Implementing Classes:
BaseHandler, JDBCHandler, SocketHandler

public interface PoolHandler

Defines the required methods a PoolHandler must implement

Author:
Huy Duong

Method Summary
 java.lang.Object create()
          Called by a Pooler to create a new object.
 void destroy(java.lang.Object o)
          Called by a Pooler to perform any cleanup and destroy the object for garbage collection.
 boolean verify(java.lang.Object o)
          Called by a Pooler to verify that the object is in a consistent and useable state.
 

Method Detail

create

public java.lang.Object create()
                        throws CreateException
Called by a Pooler to create a new object.

Throws:
CreateException

destroy

public void destroy(java.lang.Object o)
Called by a Pooler to perform any cleanup and destroy the object for garbage collection.

Parameters:
o - the object to be destroyed

verify

public boolean verify(java.lang.Object o)
Called by a Pooler to verify that the object is in a consistent and useable state.

Parameters:
o - the object to be tested

PooliT v2.0

Copyright © 2005 Ascent Phase Corp.