public interface ObjectPool
Modifier and Type | Method and Description |
---|---|
void |
addObject() |
Object |
borrowObject() |
void |
clear() |
void |
close() |
int |
getNumActive() |
int |
getNumIdle() |
void |
invalidateObject(Object obj) |
void |
returnObject(Object obj) |
void |
setFactory(PoolableObjectFactory factory) |
Object borrowObject() throws Exception, NoSuchElementException, IllegalStateException
void addObject() throws Exception, IllegalStateException, UnsupportedOperationException
int getNumIdle() throws UnsupportedOperationException
UnsupportedOperationException
int getNumActive() throws UnsupportedOperationException
UnsupportedOperationException
void clear() throws Exception, UnsupportedOperationException
void setFactory(PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException
Copyright © 2015. All rights reserved.