public interface IProcessQueueManagerSPI extends IProcessQueueManager
Modifier and Type | Method and Description |
---|---|
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
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.