|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.PooledPort.PoolManager
private class PooledPort.PoolManager
thread that coordinates the pool, i.e. allocates and deallocates channels depending on the needs
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
private |
PooledPort.PoolManager()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
private PooledPort.PoolManager()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |