org.apache.commons.pool
Class BaseKeyedObjectPool
- KeyedObjectPool
public abstract class BaseKeyedObjectPool
A simple base impementation of
ObjectPool
.
All optional operations are implemented as throwing
UnsupportedOperationException
.
$Revision: 1.9 $ $Date: 2004/02/28 11:46:33 $ void | addObject(Object key) - Not supported in this base implementation.
|
abstract Object | borrowObject(Object key)
|
void | clear() - Not supported in this base implementation.
|
void | clear(Object key) - Not supported in this base implementation.
|
void | close() - Does nothing this base implementation.
|
int | getNumActive() - Not supported in this base implementation.
|
int | getNumActive(Object key) - Not supported in this base implementation.
|
int | getNumIdle() - Not supported in this base implementation.
|
int | getNumIdle(Object key) - Not supported in this base implementation.
|
abstract void | invalidateObject(Object key, Object obj)
|
abstract void | returnObject(Object key, Object obj)
|
void | setFactory(KeyedPoolableObjectFactory factory) - Not supported in this base implementation.
|
addObject
public void addObject(Object key)
throws Exception,
UnsupportedOperationException
Not supported in this base implementation.
- addObject in interface KeyedObjectPool
clear
public void clear()
throws Exception,
UnsupportedOperationException
Not supported in this base implementation.
- clear in interface KeyedObjectPool
clear
public void clear(Object key)
throws Exception,
UnsupportedOperationException
Not supported in this base implementation.
- clear in interface KeyedObjectPool
close
public void close()
throws Exception
Does nothing this base implementation.
- close in interface KeyedObjectPool
getNumActive
public int getNumActive()
throws UnsupportedOperationException
Not supported in this base implementation.
- getNumActive in interface KeyedObjectPool
getNumActive
public int getNumActive(Object key)
throws UnsupportedOperationException
Not supported in this base implementation.
- getNumActive in interface KeyedObjectPool
getNumIdle
public int getNumIdle()
throws UnsupportedOperationException
Not supported in this base implementation.
- getNumIdle in interface KeyedObjectPool
getNumIdle
public int getNumIdle(Object key)
throws UnsupportedOperationException
Not supported in this base implementation.
- getNumIdle in interface KeyedObjectPool
Copyright © 2001-2003 Apache Software Foundation. Documenation generated March 31 2006.