Package lumis.portal.processqueue
Interface IProcessQueueManager
-
- All Known Subinterfaces:
IProcessQueueManagerSPI
- All Known Implementing Classes:
QueueManager
public interface IProcessQueueManager
Manager that allows a process to be executed asynchronously as well as see what is currently queued.- Since:
- 6.1.0
- Version:
- $Revision: 15055 $ $Date: 2012-11-29 18:48:37 -0200 (Thu, 29 Nov 2012) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IQueueStatistics
getQueueStatistics()
Retrieves the current situation statistics of the queue.IQueueTaskProcess
getTaskProcess(String processId)
Retrieves the queue item of represented by the processId.Collection<IQueueTaskProcess>
getTaskProcessByOwnerId(String ownerId)
Returns the processes of a given owner.void
reprocess(String processId)
Triggers the process to be retried.IQueueTaskProcess
schedule(IQueueTask task, QueueTaskScheduleConfig taskScheduleConfig)
Schedules the execution of the given task.
-
-
-
Method Detail
-
schedule
IQueueTaskProcess schedule(IQueueTask task, QueueTaskScheduleConfig taskScheduleConfig) throws PortalException
Schedules the execution of the given task.This operation uses the current transactional context. The task will only be available for execution after the transaction is commited. If the transaction is rolled back the scheduling will also be aborted.
- Parameters:
task
- the task to be executed.taskScheduleConfig
- contains the configuration for the execution schedule.- Returns:
- the scheduled process for that task.
- Throws:
PortalException
- if the task could not be scheduled.- Since:
- 7.0.0
-
getTaskProcess
IQueueTaskProcess getTaskProcess(String processId) throws PortalException
Retrieves the queue item of represented by the processId.- Parameters:
processId
-- Returns:
- the queue item
- Throws:
PortalException
- Since:
- 6.1.0
-
getTaskProcessByOwnerId
Collection<IQueueTaskProcess> getTaskProcessByOwnerId(String ownerId) throws PortalException
Returns the processes of a given owner.- Parameters:
ownerId
- the owner identifier.- Returns:
- a collection with the processes.
- Throws:
PortalException
- Since:
- 7.0.0
-
getQueueStatistics
IQueueStatistics getQueueStatistics() throws PortalException
Retrieves the current situation statistics of the queue.- Returns:
- statistics.
- Throws:
PortalException
- Since:
- 6.1.0
-
reprocess
void reprocess(String processId) throws PortalException
Triggers the process to be retried.- Parameters:
processId
- id of the process to be reprocessed.- Throws:
PortalException
- Since:
- 6.1.0
-
-