public class QueueConfig
extends java.lang.Object
Constructor and Description |
---|
QueueConfig(DBQueue queue)
constructor
|
Modifier and Type | Method and Description |
---|---|
QueueConfig |
disable()
Disable the job manager queue
|
QueueConfig |
enable()
Enable the job manager queue
|
long |
getBidDelayPerJob()
The amount of time to pause per job.
|
java.lang.String |
getFilter()
get the filter
|
long |
getMaxPause()
Get the max pause time
|
int |
getOpenSlots()
The number of open slots
|
boolean |
isEnable()
is the queue enabled ?
|
QueueConfig |
setBidDelayPerJob(long msecs)
The amount of time to pause per job.
|
QueueConfig |
setBidDelayPerJob(java.lang.String duration)
The amount of time to pause per job.
|
QueueConfig |
setFilter(java.lang.String filter)
Set the max pause time.
|
QueueConfig |
setMaxPause(long msecs)
Set the max pause time.
|
QueueConfig |
setOpenSlots(int maxSlots)
The maximum number of slots open in this worker.
|
public final DBQueue queue
public QueueConfig(@Nonnull DBQueue queue)
queue
- The raw queuepublic QueueConfig setOpenSlots(int maxSlots)
maxSlots
- The number of slots open@CheckReturnValue public int getOpenSlots()
@CheckReturnValue public long getMaxPause()
public QueueConfig disable()
public QueueConfig enable()
@CheckReturnValue public boolean isEnable()
public QueueConfig setMaxPause(long msecs)
msecs
- The max pause time@CheckReturnValue @Nullable public java.lang.String getFilter()
public QueueConfig setFilter(@Nullable java.lang.String filter)
filter
- the filter@CheckReturnValue public long getBidDelayPerJob()
public QueueConfig setBidDelayPerJob(long msecs)
msecs
- to pausepublic QueueConfig setBidDelayPerJob(java.lang.String duration) throws InvalidDataException
duration
- to pauseInvalidDataException
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.