Package com.uc4.api.objects
Class QueueExceptionCondition
java.lang.Object
com.uc4.api.objects.QueueExceptionCondition
This class represents a single line in the Exception table of a Queue object.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionQueueExceptionCondition
(CalendarCondition cale, Time from, Time to, int maxSlots, int priority, String description) Creates a newQueueExceptionCondition
.protected
QueueExceptionCondition
(com.uc4.util.XMLDocument doc, Element row) -
Method Summary
Modifier and TypeMethodDescriptionReturns the CalendarCondition.getFrom()
Returns the start of the validity period.int
int
Priority with which this Queue should be executed in the Automation Engine.getTo()
Returns the end of the validity period.void
Sets the calendar condition.void
setDescription
(String description) Sets the description of this Queue Exception.void
Sets the start time.void
setMaxSlots
(int maxSlots) Sets the maximum number of slots for this Queue.void
setPriority
(int priority) Priority with which this Queue should be executed in the Automation Engine.void
Sets the end time.protected void
toString()
-
Constructor Details
-
QueueExceptionCondition
public QueueExceptionCondition(CalendarCondition cale, Time from, Time to, int maxSlots, int priority, String description) Creates a newQueueExceptionCondition
.- Parameters:
cale
- Calendar conditionfrom
- From timeto
- To timemaxSlots
- Maximum number of slotspriority
- Prioritydescription
- Description
-
QueueExceptionCondition
-
-
Method Details
-
store
-
getCalendarCondition
Returns the CalendarCondition.- Returns:
- CalendarCondition
-
setCalendarCondition
Sets the calendar condition.- Parameters:
cale
- CalendarCondition
-
getFrom
Returns the start of the validity period.- Returns:
- Time instance
-
setFrom
Sets the start time.- Parameters:
from
- Time instance
-
getTo
Returns the end of the validity period.- Returns:
- Time instance
-
setTo
Sets the end time.- Parameters:
to
- Time instance
-
getMaxSlots
public int getMaxSlots()- Returns:
- The maximum number of slots or
-1
if unlimited.
-
setMaxSlots
public void setMaxSlots(int maxSlots) Sets the maximum number of slots for this Queue. The value-1
can 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 the Automation Engine. 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 the Automation Engine. 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
-
getDescription
- Returns:
- Description
-
setDescription
Sets the description of this Queue Exception.- Parameters:
description
- String with max. 255 characters
-
toString
-