Package com.linkedin.venice.utils
Class RedundantExceptionFilter
java.lang.Object
com.linkedin.venice.utils.RedundantExceptionFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionRedundantExceptionFilter(int bitSetSize, long noRedundantExceptionDurationMs) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidprotected intstatic RedundantExceptionFilterprotected booleanisRedundant(int index, boolean updateRedundancy) booleanisRedundantException(String exceptionMessage) booleanisRedundantException(String exceptionMessage, boolean updateRedundancy) booleanisRedundantException(String storeName, String exceptionType) booleanisRedundantException(String storeName, Throwable e) voidshutdown()
-
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)
-