Input & Output
(Re)start the index queue
The startIndexQueue()
method initiates or restarts the batch index queue, processing all records flagged for indexing. This method is particularly useful in scenarios where the queue has become idle or when records have been manually added to the queue outside of standard doIndex
methods.
Method Signature
Method name: startIndexQueue
void startIndexQueue()
Input
- Method needs to be initialized.
- Records must already exist in the queue (
Duplicate Check Queue
object) for the method to have an effect.
Output
The method does not return any value (void
).
Apex Example
This snippet initializes the Duplicate Check API, starts the batch index queue using dc3Api.startIndexQueue()
, and logs that the process has begun.
// Initialize the Plauti Deduplicate API
dupcheck.dc3Api dc3Api = new dupcheck.dc3Api();
// Start the batch index queue
dc3Api.startIndexQueue();
// Optionally log the action
System.debug('Batch index queue has been started.');
Updated 17 days ago