public class ConnectionPool<T extends Connector> extends Pool<Connection<T>>
| Constructor and Description |
|---|
ConnectionPool(ConnectionHelper<T> helper,
int initialSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear(Connection<T> connection)
Clears the given object when it is checked in the pool.
|
protected Connection<T> |
createObject()
Creates a new reusable object.
|
public ConnectionPool(ConnectionHelper<T> helper, int initialSize)
helper - The parent helper.initialSize - The initial pool size.protected void clear(Connection<T> connection)
Poolclear in class Pool<Connection<T extends Connector>>connection - The object to clear.protected Connection<T> createObject()
PoolcreateObject in class Pool<Connection<T extends Connector>>Copyright © 2005–2016. All rights reserved.