lumis.portal.processqueue
Interface IProcessQueueManagerSPI

Package class diagram package IProcessQueueManagerSPI
All Superinterfaces:
IProcessQueueManager
All Known Implementing Classes:
QueueManager

public interface IProcessQueueManagerSPI
extends IProcessQueueManager

Manager that controls the consumption part of a queue.

Since:
6.1.0

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

getNextQueueTaskProcessForExecution

IQueueTaskProcess getNextQueueTaskProcessForExecution()
                                                      throws PortalException,
                                                             InterruptedException
Returns the next task process for execution. This method waits until there is a task process available.

The returned task will already have its status changed to QueueTaskProcessStatus.Running.

Returns:
the task process.
Throws:
PortalException - if there is an error obtaining the process.
InterruptedException - if the current thread is interrupted.
Since:
7.0.0

removeFromQueue

void removeFromQueue(IQueueTaskProcess item,
                     boolean notifyListeners)
                     throws PortalException
Removes from queue the current item.

Parameters:
item - to be removed from queue.
notifyListeners - if the threads should be waken up.
Throws:
PortalException
Since:
6.1.0

setFailedStatus

void setFailedStatus(IQueueTaskProcess queueItem)
                     throws PortalException
Sets the given process the status of QueueTaskProcessStatus.Failed.

Parameters:
queueItem - item to be put in failed status.
Throws:
PortalException
Since:
6.1.0


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.