public abstract class RPPoolManager extends Object
RequestProcessor
Modifier | Constructor and Description |
---|---|
protected |
RPPoolManager(Current _current,
int min,
int max,
int pt,
org.slf4j.Logger _logger,
Configuration _configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRPPoolManagerListener(RPPoolManagerListener listener) |
protected void |
destroy(boolean really)
shutdown this poolManager.
|
protected int |
getPoolCount()
returns the number of unused processors contained in the pool
|
protected int |
getPoolSize()
returns the size of the processor pool (used and unused processors)
|
protected RequestProcessor |
getProcessor()
returns a processor from pool, the first call causes
the initialization of the processor pool,
if no processor available the number of processors
will increased until the max_pool_size is reached,
this method blocks if no processor available and the
max_pool_size is reached until a processor will released
|
protected void |
releaseProcessor(RequestProcessor rp)
gives a processor back into the pool if the number of
available processors is smaller than min_pool_size,
otherwise the processor will terminate
|
protected void |
removeRPPoolManagerListener(RPPoolManagerListener listener) |
protected void |
warnPoolIsEmpty() |
protected RPPoolManager(Current _current, int min, int max, int pt, org.slf4j.Logger _logger, Configuration _configuration)
protected void addRPPoolManagerListener(RPPoolManagerListener listener)
protected void destroy(boolean really)
destroy()
instead.protected int getPoolCount()
protected int getPoolSize()
protected RequestProcessor getProcessor()
protected void warnPoolIsEmpty()
protected void releaseProcessor(RequestProcessor rp)
protected void removeRPPoolManagerListener(RPPoolManagerListener listener)
Copyright © 2017 JacORB. All rights reserved.