Class CTSWorkerDeleteProcess.TokenDeletion

  • Enclosing class:
    CTSWorkerDeleteProcess

    public static class CTSWorkerDeleteProcess.TokenDeletion
    extends Object
    Deletes batches of Token IDs from the persistence layer. This class manages the detail of both the triggering the deletes and also collecting up the responses to ensure that the operation has been processed asynchronously.
    • Constructor Detail

      • TokenDeletion

        @Inject
        public TokenDeletion​(TaskDispatcher queue)
    • Method Detail

      • deleteBatch

        public CountDownLatch deleteBatch​(Collection<PartialToken> tokens)
                                   throws CoreTokenException
        Performs a delete against a batch of Token IDs in the search results. This function will defer to the TaskDispatcher for deletion requests.
        Parameters:
        tokens - PartialToken objects containing the IDs of the tokens to delete.
        Returns:
        CountDownLatch A CountDownLatch which can be blocked on to ensure that the delete tasks have been completed.
        Throws:
        CoreTokenException - If there was any problem queuing the delete operation.