Class FsQueueConfig.OnCommitFailure
java.lang.Object
com.norconex.committer.core.batch.queue.impl.FsQueueConfig.OnCommitFailure
- Enclosing class:
FsQueueConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintMaximum retries upon commit failures.longDelay in milliseconds between retries.Whether and how to split batches when re-attempting them when they fail See class documentation for details.inthashCode()booleanWhether to ignore non-critical errors in an attempt to keep going.setIgnoreErrors(boolean ignoreErrors) Whether to ignore non-critical errors in an attempt to keep going.setMaxRetries(int maxRetries) Maximum retries upon commit failures.setRetryDelay(long retryDelay) Delay in milliseconds between retries.setSplitBatch(FsQueue.SplitBatch splitBatch) Whether and how to split batches when re-attempting them when they fail See class documentation for details.toString()
-
Constructor Details
-
OnCommitFailure
public OnCommitFailure()
-
-
Method Details
-
getSplitBatch
Whether and how to split batches when re-attempting them when they fail See class documentation for details. -
getMaxRetries
public int getMaxRetries()Maximum retries upon commit failures. Default is 0 (does not retry). -
getRetryDelay
public long getRetryDelay()Delay in milliseconds between retries. Default is 0 (does not wait). -
isIgnoreErrors
public boolean isIgnoreErrors()Whether to ignore non-critical errors in an attempt to keep going. See class documentation for more details. -
setSplitBatch
Whether and how to split batches when re-attempting them when they fail See class documentation for details.- Returns:
this.
-
setMaxRetries
Maximum retries upon commit failures. Default is 0 (does not retry).- Returns:
this.
-
setRetryDelay
Delay in milliseconds between retries. Default is 0 (does not wait).- Returns:
this.
-
setIgnoreErrors
Whether to ignore non-critical errors in an attempt to keep going. See class documentation for more details.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-