Package com.uc4.api.objects
Class QueueAttributes
- java.lang.Object
-
- com.uc4.api.objects.QueueAttributes
-
public class QueueAttributes extends java.lang.ObjectThis class represents the "Queue" tab of a Queue object. Methods in this class can be used to read and modify the Queue object.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQueueAttributes(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExceptionCondition(QueueExceptionCondition cond)Adds a newQueueExceptionConditionto the list of exceptions.voidclearExceptionConditons()Clears the list ofExceptionConditons.java.util.Iterator<QueueExceptionCondition>exceptionIterator()The returnedjava.util.Iteratorcan be used to read the list of exception conditions of this Queue.intgetExceptionCount()intgetMaxSlots()intgetPriority()Priority with which this Queue should be executed in UC4.UC4TimezoneNamegetTimezone()booleanisConsiderERT()voidsetConsiderERT(boolean considerERT)Sets a flag to define if the Estimated Runtime should be considered for the calculation.voidsetMaxSlots(int maxSlots)Sets the maximum number of slots for this Queue.voidsetPriority(int priority)Priority with which this Queue should be executed in UC4.voidsetTimezone(UC4TimezoneName timezone)Sets the timezone of the Queue object.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
-
getExceptionCount
public int getExceptionCount()
- Returns:
- Number of
QueueExceptionConditionfor this Queue.
-
exceptionIterator
public java.util.Iterator<QueueExceptionCondition> exceptionIterator()
The returnedjava.util.Iteratorcan be used to read the list of exception conditions of this Queue. Theremovemethod of the Iterator can be used to remove date/time conditions.- Returns:
- Iterator over
QueueExceptionCondition
-
clearExceptionConditons
public void clearExceptionConditons()
Clears the list ofExceptionConditons.
-
addExceptionCondition
public void addExceptionCondition(QueueExceptionCondition cond)
Adds a newQueueExceptionConditionto the list of exceptions. The new element is added at the end of the list.- Parameters:
cond- Instance of a QueueExceptionCondition class
-
getMaxSlots
public int getMaxSlots()
- Returns:
- The maximum number of slots or
-1if unlimited.
-
setMaxSlots
public void setMaxSlots(int maxSlots)
Sets the maximum number of slots for this Queue. The value-1can be used to set max slots to unlimited.- Parameters:
maxSlots- Positive Integer between 0 and 100000 or -1 for unlimited
-
getPriority
public int getPriority()
Priority with which this Queue should be executed in UC4. Permitted values: 0 to 255
Default: 0
1 stands for highest, 255 for lowest priority. If 0 is chosen, the priority defined in the UC_CLIENT_SETTINGS variables with TASK_PRIORITY for local clients is used. If no default priority is set or if no variable is present in the local clients, then 200 is assigned as the valid priority.- Returns:
- priority
-
setPriority
public void setPriority(int priority)
Priority with which this Queue should be executed in UC4. Permitted values: 0 to 255
Default: 0
1 stands for highest, 255 for lowest priority. If 0 is chosen, the priority defined in the UC_CLIENT_SETTINGS variables with TASK_PRIORITY for local clients is used. If no default priority is set or if no variable is present in the local clients, then 200 is assigned as the valid priority.- Parameters:
priority- Priority
-
isConsiderERT
public boolean isConsiderERT()
- Returns:
- true if the Estimated Runtime should be considered for the calculation.
-
setConsiderERT
public void setConsiderERT(boolean considerERT)
Sets a flag to define if the Estimated Runtime should be considered for the calculation.- Parameters:
considerERT- true if the Estimated Runtime should be considered for the calculation, false otherwise
-
getTimezone
public UC4TimezoneName getTimezone()
- Returns:
- Timezone
-
setTimezone
public void setTimezone(UC4TimezoneName timezone)
Sets the timezone of the Queue object.- Parameters:
timezone- Timezone
-
-