public interface IProcessQueueManagerSPI extends IProcessQueueManager
Modifier and Type | Method and Description |
---|---|
boolean |
existsTaskWithLockNotRunning(String lockId)
Check if exists a task with given lock identifier that is not running.
|
IQueueTaskProcess |
getNextQueueTaskProcessForExecution()
Returns the next task process for execution.
|
void |
removeFromQueue(IQueueTaskProcess item,
boolean notifyListeners)
Removes from queue the current item.
|
void |
setFailedStatus(IQueueTaskProcess queueItem)
Sets the given process the status of
QueueTaskProcessStatus.Failed . |
getQueueStatistics, getTaskProcess, getTaskProcessByOwnerId, reprocess, schedule
IQueueTaskProcess getNextQueueTaskProcessForExecution() throws PortalException, InterruptedException
The returned task will already have its status changed
to QueueTaskProcessStatus.Running
.
PortalException
- if there is an error obtaining the process.InterruptedException
- if the current thread is interrupted.void removeFromQueue(IQueueTaskProcess item, boolean notifyListeners) throws PortalException
item
- to be removed from queue.notifyListeners
- if the threads should be waken up.PortalException
void setFailedStatus(IQueueTaskProcess queueItem) throws PortalException
QueueTaskProcessStatus.Failed
.queueItem
- item to be put in failed status.PortalException
boolean existsTaskWithLockNotRunning(String lockId)
lockId
- the lock identifier.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.