private class PooledPort.PoolManager
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private static long |
CHECK_POOL_PERIOD
maximum time to check pool for closed connections
|
private static long |
CREATE_REPEAT_WAIT
the timeout time if the maximum number of connections
has been reached
|
private long |
nextAllocate
the point in time when the next channel may created (0 = immediately)
|
private long |
nextRelease
the point in time the next release test has to be performed
|
private static long |
RELEASE_PERIOD
the release period of channels over the minimum
|
Modifier | Constructor and Description |
---|---|
private |
PoolManager() |
Modifier and Type | Method and Description |
---|---|
private boolean |
createChannel()
try to create a new channel and add it to the pool
|
private void |
releaseChannel(RegistryChannel channel)
release the given channel
|
void |
run()
perform the duties
|
private long nextRelease
private long nextAllocate
private static final long RELEASE_PERIOD
private static final long CHECK_POOL_PERIOD
private static final long CREATE_REPEAT_WAIT
private boolean createChannel()
true
if further preallocated channels
may be createdprivate void releaseChannel(RegistryChannel channel)
channel
- the channel to releasepublic void run()
run
in interface java.lang.Runnable
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH