nl.knowledgeplaza.util.pool
Interface ObjectPool<T>

All Known Subinterfaces:
JdbcConnectionPool
All Known Implementing Classes:
BaseObjectPool, FastestFirstObjectPool, JdbcConnectionPoolWrapper, PriorityObjectPool, RoundRobinObjectPool, StackObjectPool

public interface ObjectPool<T>

This interface is compatible with the Apache Common Pool, so it can be a drop-in replacement.

Version:
$Revision: 1.3 $

Method Summary
 void addObject()
           
 T borrowObject()
           
 void clear()
           
 void close()
           
 int getNumActive()
           
 int getNumIdle()
           
 void invalidateObject(T arg0)
           
 boolean isSynchronized()
           
 void returnObject(T arg0)
           
 void setFactory(PoolableObjectFactory<T> arg0)
           
 void setSynchronized(boolean value)
           
 void shutdown()
           
 

Method Detail

borrowObject

T borrowObject()

returnObject

void returnObject(T arg0)

invalidateObject

void invalidateObject(T arg0)

addObject

void addObject()

getNumIdle

int getNumIdle()
               throws UnsupportedOperationException
Throws:
UnsupportedOperationException

getNumActive

int getNumActive()
                 throws UnsupportedOperationException
Throws:
UnsupportedOperationException

clear

void clear()
           throws UnsupportedOperationException
Throws:
UnsupportedOperationException

close

void close()

setFactory

void setFactory(PoolableObjectFactory<T> arg0)
                throws IllegalStateException,
                       UnsupportedOperationException
Throws:
IllegalStateException
UnsupportedOperationException

shutdown

void shutdown()

setSynchronized

void setSynchronized(boolean value)

isSynchronized

boolean isSynchronized()


Copyright © 2012 KnowledgePlaza. All Rights Reserved.