Interface SegmentNotFoundExceptionListener
-
- All Known Implementing Classes:
FileStoreStats
public interface SegmentNotFoundExceptionListener
Listener forSegmentNotFoundException
. Its purpose is to e.g. provide meaningful logging information about these exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description static SegmentNotFoundExceptionListener
IGNORE_SNFE
Listener instance doing nothing on aSegmentNotFoundException
static SegmentNotFoundExceptionListener
LOG_SNFE
Listener instance logging theSegmentNotFoundException
at error level.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notify(@NotNull SegmentId id, @NotNull SegmentNotFoundException snfe)
Notification aboutSegmentNotFoundException
thrown by the underlying store in a meaningful way.
-
-
-
Field Detail
-
IGNORE_SNFE
static final SegmentNotFoundExceptionListener IGNORE_SNFE
Listener instance doing nothing on aSegmentNotFoundException
-
LOG_SNFE
static final SegmentNotFoundExceptionListener LOG_SNFE
Listener instance logging theSegmentNotFoundException
at error level.
-
-
Method Detail
-
notify
void notify(@NotNull @NotNull SegmentId id, @NotNull @NotNull SegmentNotFoundException snfe)
Notification aboutSegmentNotFoundException
thrown by the underlying store in a meaningful way. E.g. by logging it.- Parameters:
id
- the segment id of the offendingSegment
snfe
- the raised exception
-
-