org.apache.commons.pool

Class BaseKeyedObjectPool

Implemented Interfaces:
KeyedObjectPool
Known Direct Subclasses:
GenericKeyedObjectPool, StackKeyedObjectPool

public abstract class BaseKeyedObjectPool
extends Object
implements KeyedObjectPool

A simple base impementation of ObjectPool. All optional operations are implemented as throwing UnsupportedOperationException.
Version:
$Revision: 1.9 $ $Date: 2004/02/28 11:46:33 $
Author:
Rodney Waldhoff

Method Summary

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.

Method Details

addObject

public void addObject(Object key)
            throws Exception,
                   UnsupportedOperationException
Not supported in this base implementation.
Specified by:
addObject in interface KeyedObjectPool

borrowObject

public abstract Object borrowObject(Object key)
            throws Exception
Specified by:
borrowObject in interface KeyedObjectPool

clear

public void clear()
            throws Exception,
                   UnsupportedOperationException
Not supported in this base implementation.
Specified by:
clear in interface KeyedObjectPool

clear

public void clear(Object key)
            throws Exception,
                   UnsupportedOperationException
Not supported in this base implementation.
Specified by:
clear in interface KeyedObjectPool

close

public void close()
            throws Exception
Does nothing this base implementation.
Specified by:
close in interface KeyedObjectPool

getNumActive

public int getNumActive()
            throws UnsupportedOperationException
Not supported in this base implementation.
Specified by:
getNumActive in interface KeyedObjectPool

getNumActive

public int getNumActive(Object key)
            throws UnsupportedOperationException
Not supported in this base implementation.
Specified by:
getNumActive in interface KeyedObjectPool

getNumIdle

public int getNumIdle()
            throws UnsupportedOperationException
Not supported in this base implementation.
Specified by:
getNumIdle in interface KeyedObjectPool

getNumIdle

public int getNumIdle(Object key)
            throws UnsupportedOperationException
Not supported in this base implementation.
Specified by:
getNumIdle in interface KeyedObjectPool

invalidateObject

public abstract void invalidateObject(Object key,
                                      Object obj)
            throws Exception
Specified by:
invalidateObject in interface KeyedObjectPool

returnObject

public abstract void returnObject(Object key,
                                  Object obj)
            throws Exception
Specified by:
returnObject in interface KeyedObjectPool

setFactory

public void setFactory(KeyedPoolableObjectFactory factory)
            throws IllegalStateException,
                   UnsupportedOperationException
Not supported in this base implementation.
Specified by:
setFactory in interface KeyedObjectPool

Copyright © 2001-2003 Apache Software Foundation. Documenation generated March 31 2006.