|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.engine.ConcurrencySettings
Class holding the concurrency settings of an engine. These are:
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static int |
MAX_QUEUE_LENGTH
|
private static int |
MAX_REQUESTS
Default concurrency settings |
private int |
mMaxQueueLength
|
private int |
mMaxRequests
Current concurrency settings |
private long |
mRequestProcessingTimeout
|
private static long |
REQUEST_PROCESSING_TIMEOUT
|
Constructor Summary | |
ConcurrencySettings()
Create a set of concurrency settings with the default values. |
|
ConcurrencySettings(int maxRequests,
int maxQueueLength,
long requestProcessingTimeout)
Create a set of concurrency settings with the given values. |
Method Summary | |
int |
getMaxQueueLength()
Get maximum queue length. |
int |
getMaxRequests()
Get maximum number of requests |
long |
getRequestProcessingTimeout()
Get request processing timeout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final int MAX_REQUESTS
private static final int MAX_QUEUE_LENGTH
private static final long REQUEST_PROCESSING_TIMEOUT
private int mMaxRequests
private int mMaxQueueLength
private long mRequestProcessingTimeout
Constructor Detail |
public ConcurrencySettings()
public ConcurrencySettings(int maxRequests, int maxQueueLength, long requestProcessingTimeout) throws java.lang.IllegalArgumentException
maxRequests
- The maximum number of requests that the engine will be
configured to process concurrently.maxQueueLength
- The maximum number of requests that engine will be able to
queue when its concurrency limit has been reached.requestProcessingTimeout
- The maximum duration in milliseconds that requests will be
allowed by the engine to process before being terminated. A
value of zero results in no time limit being imposed
on processing.
java.lang.IllegalArgumentException
- If
maxRequests
is less than 1 (one).
maxQueueLength
is less than 0 (zero).
requestProcessingTimeout
is less than 0
(zero).
Method Detail |
public int getMaxRequests()
public int getMaxQueueLength()
public long getRequestProcessingTimeout()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |