Interface BulkWriter.WriteErrorCallback (3.10.0)

public static interface BulkWriter.WriteErrorCallback

A callback set by addWriteErrorListener() to be run every time an operation fails and determines if an operation should be retried.

Methods

onError(BulkWriterException error)

public abstract boolean onError(BulkWriterException error)
Parameter
NameDescription
errorBulkWriterException

The error object from the failed BulkWriter operation attempt.

Returns
TypeDescription
boolean

Whether to retry the operation or not.