|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProcessQueueManager
Manager that allows a process to be executed asynchronously as well as see what is currently queued.
Method Summary | |
---|---|
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 |
---|
IQueueTaskProcess schedule(IQueueTask task, QueueTaskScheduleConfig taskScheduleConfig) throws PortalException
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.
task
- the task to be executed.taskScheduleConfig
- contains the configuration for the execution
schedule.
PortalException
- if the task could not be scheduled.IQueueTaskProcess getTaskProcess(String processId) throws PortalException
processId
-
PortalException
Collection<IQueueTaskProcess> getTaskProcessByOwnerId(String ownerId) throws PortalException
ownerId
- the owner identifier.
PortalException
IQueueStatistics getQueueStatistics() throws PortalException
PortalException
void reprocess(String processId) throws PortalException
processId
- id of the process to be reprocessed.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |