Package com.linkedin.venice.utils
Class RedundantExceptionFilter
java.lang.Object
com.linkedin.venice.utils.RedundantExceptionFilter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final long
-
Constructor Summary
ConstructorDescriptionRedundantExceptionFilter
(int bitSetSize, long noRedundantExceptionDurationMs) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
protected int
static RedundantExceptionFilter
protected boolean
isRedundant
(int index, boolean updateRedundancy) boolean
isRedundantException
(String exceptionMessage) boolean
isRedundantException
(String exceptionMessage, boolean updateRedundancy) boolean
isRedundantException
(String storeName, String exceptionType) boolean
isRedundantException
(String storeName, Throwable e) void
shutdown()
-
Field Details
-
DEFAULT_BITSET_SIZE
public static final int DEFAULT_BITSET_SIZE- See Also:
-
DEFAULT_NO_REDUNDANT_EXCEPTION_DURATION_MS
public static final long DEFAULT_NO_REDUNDANT_EXCEPTION_DURATION_MS
-
-
Constructor Details
-
RedundantExceptionFilter
public RedundantExceptionFilter() -
RedundantExceptionFilter
public RedundantExceptionFilter(int bitSetSize, long noRedundantExceptionDurationMs)
-
-
Method Details
-
getRedundantExceptionFilter
-
isRedundantException
-
isRedundantException
-
isRedundantException
-
isRedundantException
-
clearBitSet
public final void clearBitSet() -
shutdown
public void shutdown() -
getIndex
-
isRedundant
protected boolean isRedundant(int index, boolean updateRedundancy)
-