public interface SegmentNotFoundExceptionListener
SegmentNotFoundException
. Its purpose is to e.g. provide meaningful
logging information about these exceptions.Modifier and Type | Field and Description |
---|---|
static SegmentNotFoundExceptionListener |
IGNORE_SNFE
Listener instance doing nothing on a
SegmentNotFoundException |
static SegmentNotFoundExceptionListener |
LOG_SNFE
Listener instance logging the
SegmentNotFoundException at error level. |
Modifier and Type | Method and Description |
---|---|
void |
notify(@NotNull SegmentId id,
@NotNull SegmentNotFoundException snfe)
Notification about
SegmentNotFoundException thrown by the underlying store
in a meaningful way. |
static final SegmentNotFoundExceptionListener IGNORE_SNFE
SegmentNotFoundException
static final SegmentNotFoundExceptionListener LOG_SNFE
SegmentNotFoundException
at error level.void notify(@NotNull @NotNull SegmentId id, @NotNull @NotNull SegmentNotFoundException snfe)
SegmentNotFoundException
thrown by the underlying store
in a meaningful way. E.g. by logging it.id
- the segment id of the offending Segment
snfe
- the raised exceptionCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.