public class ConnectionPool extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConnectionPool.PoolCleanerTask |
Modifier and Type | Field and Description |
---|---|
private AtomicInteger |
activeConnections |
(package private) static int |
CLEANINGPERIOD |
private Queue<FS4Connection> |
connections |
private static Logger |
log |
private AtomicInteger |
passiveConnections |
Constructor and Description |
---|
ConnectionPool() |
ConnectionPool(Timer timer) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
activeConnections() |
(package private) void |
createdConnection() |
private void |
dropInvalidConnections() |
FS4Connection |
getConnection() |
(package private) int |
passiveConnections() |
private FS4Connection |
registerAsActiveIfNonZero(FS4Connection connection) |
(package private) void |
releaseConnection(FS4Connection connection) |
static final int CLEANINGPERIOD
private final Queue<FS4Connection> connections
private final AtomicInteger activeConnections
private final AtomicInteger passiveConnections
private static final Logger log
public ConnectionPool()
public ConnectionPool(Timer timer)
private void dropInvalidConnections()
private FS4Connection registerAsActiveIfNonZero(FS4Connection connection)
public FS4Connection getConnection()
void releaseConnection(FS4Connection connection)
void createdConnection()
int activeConnections()
int passiveConnections()
Copyright © 2018. All rights reserved.