public interface CommitLogReadHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommitLogReadHandler.CommitLogReadErrorReason |
static class |
CommitLogReadHandler.CommitLogReadException |
| Modifier and Type | Method and Description |
|---|---|
void |
handleMutation(Mutation m,
int size,
int entryLocation,
CommitLogDescriptor desc)
Process a deserialized mutation
|
void |
handleUnrecoverableError(CommitLogReadHandler.CommitLogReadException exception)
In instances where we cannot recover from a specific error and don't care what the reader thinks
|
boolean |
shouldSkipSegmentOnError(CommitLogReadHandler.CommitLogReadException exception)
Handle an error during segment read, signaling whether or not you want the reader to skip the remainder of the
current segment on error.
|
boolean shouldSkipSegmentOnError(CommitLogReadHandler.CommitLogReadException exception) throws java.io.IOException
exception - CommitLogReadException w/details on exception statejava.io.IOException - In the event the handler wants forceful termination of all processing, throw IOException.void handleUnrecoverableError(CommitLogReadHandler.CommitLogReadException exception) throws java.io.IOException
exception - CommitLogReadException w/details on exception statejava.io.IOExceptionvoid handleMutation(Mutation m, int size, int entryLocation, CommitLogDescriptor desc)
m - deserialized mutationsize - serialized size of the mutationentryLocation - filePointer offset inside the CommitLogSegment for the recorddesc - CommitLogDescriptor for mutation being processedCopyright © 2018 The Apache Software Foundation