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 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
      • 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