Interface SegmentNotFoundExceptionListener
-
- All Known Implementing Classes:
FileStoreStats
public interface SegmentNotFoundExceptionListenerListener forSegmentNotFoundException. Its purpose is to e.g. provide meaningful logging information about these exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description static SegmentNotFoundExceptionListenerIGNORE_SNFEListener instance doing nothing on aSegmentNotFoundExceptionstatic SegmentNotFoundExceptionListenerLOG_SNFEListener instance logging theSegmentNotFoundExceptionat error level.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotify(@NotNull SegmentId id, @NotNull SegmentNotFoundException snfe)Notification aboutSegmentNotFoundExceptionthrown 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 theSegmentNotFoundExceptionat error level.
-
-
Method Detail
-
notify
void notify(@NotNull @NotNull SegmentId id, @NotNull @NotNull SegmentNotFoundException snfe)Notification aboutSegmentNotFoundExceptionthrown by the underlying store in a meaningful way. E.g. by logging it.- Parameters:
id- the segment id of the offendingSegmentsnfe- the raised exception
-
-