Class AbstractBatchCommitter<T extends BaseBatchCommitterConfig>

java.lang.Object
com.norconex.committer.core.AbstractCommitter<T>
com.norconex.committer.core.batch.AbstractBatchCommitter<T>
Type Parameters:
T - Committer configuration type
All Implemented Interfaces:
BatchConsumer, Committer, Configurable<T>, AutoCloseable
Direct Known Subclasses:
AmazonCloudSearchCommitter, ApacheKafkaCommitter, AzureSearchCommitter, ElasticsearchCommitter, GoogleCloudSearchCommitter, IdolCommitter, Neo4jCommitter, SolrCommitter, SqlCommitter

public abstract class AbstractBatchCommitter<T extends BaseBatchCommitterConfig> extends AbstractCommitter<T> implements BatchConsumer

A base implementation for doing batch commits. Uses an internal queue for storing update/addition requests and deletion requests. It sends the queued data to the remote target every time a given queue threshold has been reached. Unless otherwise stated, both additions and deletions count towards that threshold.

This class also provides batch-related events: COMMITTER_BATCH_BEGIN, COMMITTER_BATCH_END, and COMMITTER_BATCH_ERROR.

The default queue is FsQueue (file-system queue).