|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProcessQueueManagerSPI
Manager that controls the consumption part of a queue.
Method Summary | |
---|---|
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 . |
Methods inherited from interface lumis.portal.processqueue.IProcessQueueManager |
---|
getQueueStatistics, getTaskProcess, getTaskProcessByOwnerId, reprocess, schedule |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |