Class DefaultWorkItemQueue

    • Method Detail

      • push

        public void push​(List<WorkItem> workItems)
        Description copied from interface: WorkItemQueue
        Pushes group of work items to the queue.
        Specified by:
        push in interface WorkItemQueue
        Parameters:
        workItems - User defined items scheduled to be processed by Task Reactor.
      • cancelOngoingExecutions

        public void cancelOngoingExecutions​(List<String> resourceIds)
        Description copied from interface: WorkItemQueue
        Pushes cancel ongoing ingestion's items to work item queue.
        Specified by:
        cancelOngoingExecutions in interface WorkItemQueue
        Parameters:
        resourceIds - Identifiers of the work items to be cancelled.
      • delete

        public void delete​(List<String> ids)
        Description copied from interface: WorkItemQueue
        Remove items from work item queue with given ids.
        Specified by:
        delete in interface WorkItemQueue
        Parameters:
        ids - Identifiers of the object to be removed.
      • deleteBefore

        public void deleteBefore​(String resourceId,
                                 Timestamp timestamp)
        Description copied from interface: WorkItemQueue
        Remove items from work item queue which were created for a give resource id and before the given timestamp.

        Note: currently this method is considered temporary, it might be deleted in the future.

        Specified by:
        deleteBefore in interface WorkItemQueue
        Parameters:
        resourceId - resource id
        timestamp - limiting timestamp