Class CTSWorkerDeleteProcess.TokenDeletion
- java.lang.Object
-
- org.forgerock.openam.cts.worker.process.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 Summary
Constructors Constructor Description TokenDeletion(TaskDispatcher queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountDownLatchdeleteBatch(Collection<PartialToken> tokens)Performs a delete against a batch of Token IDs in the search results.
-
-
-
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 theTaskDispatcherfor 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.
-
-