public class CmsUgcSessionQueue extends java.lang.Object
Constructor and Description |
---|
CmsUgcSessionQueue(boolean enabled,
long interval,
int maxLength)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static CmsUgcSessionQueue |
createQueue(CmsUgcConfiguration config)
Creates a session queue based on the given configuration.
|
void |
updateFromConfiguration(CmsUgcConfiguration config)
Updates the queue parameters from the configuration object.
|
boolean |
waitForSlot()
If there are currently any threads waiting on this queue, wait for the interval given on construction after the currenly last thread stops waiting.
|
public CmsUgcSessionQueue(boolean enabled, long interval, int maxLength)
enabled
- true if the queue should be enabledinterval
- the wait time to use between multiple session requestsmaxLength
- the maximum length of the queuepublic static CmsUgcSessionQueue createQueue(CmsUgcConfiguration config)
config
- the configuration for which to create the session queuepublic void updateFromConfiguration(CmsUgcConfiguration config)
config
- the form configurationpublic boolean waitForSlot()