public class DBPortPool extends SimplePool<DBPort>
Modifier and Type | Class and Description |
---|---|
static class |
DBPortPool.ConnectionWaitTimeOut |
static class |
DBPortPool.NoMoreConnection |
static class |
DBPortPool.SemaphoresOut |
_availSafe, _debug, _maxToKeep, _maxTotal, _mbeanInfo, _name, _trackLeaks
Modifier and Type | Method and Description |
---|---|
void |
cleanup(DBPort p)
override this if you need to do any cleanup
|
protected DBPort |
createNew()
Creates a new object of this pool's type.
|
DBPort |
get()
Gets an object from the pool - will block if none are available
|
ServerAddress |
getServerAddress() |
protected long |
memSize(DBPort p) |
boolean |
ok(DBPort t)
callback to determine if an object is ok to be added back to the pool or used
will be called when something is put back into the queue and when it comes out
|
protected int |
pick(int iThink,
boolean couldCreate) |
available, clear, done, everCreated, get, getAll, getAttribute, getAttributes, getMBeanInfo, inUse, invoke, maxToKeep, remove, setAttribute, setAttributes, toString, total
protected long memSize(DBPort p)
protected int pick(int iThink, boolean couldCreate)
pick
in class SimplePool<DBPort>
public DBPort get()
SimplePool
get
in class SimplePool<DBPort>
public void cleanup(DBPort p)
SimplePool
cleanup
in class SimplePool<DBPort>
public boolean ok(DBPort t)
SimplePool
ok
in class SimplePool<DBPort>
protected DBPort createNew()
SimplePool
createNew
in class SimplePool<DBPort>
public ServerAddress getServerAddress()