public class QueueTaskScheduleConfig extends Object
IQueueTask
.
The same configuration object may be reused for different calls to
IProcessQueueManager.schedule(IQueueTask, QueueTaskScheduleConfig)
.
Changes to this configuration object will have no effect on tasks already
scheduled with it. This class is not thread-safe.
Constructor and Description |
---|
QueueTaskScheduleConfig() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getExclusiveLocks()
Returns the exclusive locks for this task.
|
String |
getOwnerId()
Returns the owner identifier set in this configuration.
|
Date |
getScheduledDateTime()
Returns the scheduled date-time for the execution of the task.
|
Set<String> |
getSharedLocks()
Returns the shared locks for this task.
|
String |
getTitle()
Returns the title for the task set in this configuration.
|
void |
setOwnerId(String ownerId)
Sets the identifier of the task's owner.
|
void |
setScheduledDateTime(Date scheduledDateTime)
Sets the scheduled date-time for the execution of the task.
|
void |
setTitle(String title)
Sets the title for the task, to help identify it in the task queue.
|
public String getTitle()
If this property is null
, an automatic title will be used when
the task is scheduled.
It is strongly recommended to specify the title to help troubleshooting.
null
if it has not been configured.setTitle(String)
public void setTitle(String title)
If this property is null
, an automatic title will be used when
the task is scheduled.
It is strongly recommended to specify the title to help troubleshooting.
title
- the title.public String getOwnerId()
null
if it was not set.setOwnerId(String)
public void setOwnerId(String ownerId)
ownerId
- the identifier of the owner of the task. It must be a
guid
, or null
if no owner information is to be stored.public Date getScheduledDateTime()
null
if the task has no
constraint on the date-time to be available to run.public void setScheduledDateTime(Date scheduledDateTime)
scheduledDateTime
- the scheduled date-time, or null
if the task
has no constraint on the date-time to be available to run.public Set<String> getSharedLocks()
A task with a shared lock will not allow any newer task with the same value as an exclusive lock to execute before it.
getExclusiveLocks()
,
lumis.portal.processqueue
public Set<String> getExclusiveLocks()
A task with an exclusive lock will not allow any newer task with the same value as either shared or exclusive lock to execute before it.
The task process identifier, returned by
IProcessQueueManager.schedule(lumis.portal.processqueue.IQueueTask, lumis.portal.processqueue.QueueTaskScheduleConfig)
, will automatically be included
as an exclusive lock, but it will not be present at the returned set.
getSharedLocks()
,
lumis.portal.processqueue
LumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.