Package com.linkedin.venice.utils
Class RedundantExceptionFilter
- java.lang.Object
-
- com.linkedin.venice.utils.RedundantExceptionFilter
-
public class RedundantExceptionFilter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BITSET_SIZE
static long
DEFAULT_NO_REDUNDANT_EXCEPTION_DURATION_MS
-
Constructor Summary
Constructors Constructor Description RedundantExceptionFilter()
RedundantExceptionFilter(int bitSetSize, long noRedundantExceptionDurationMs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearBitSet()
protected int
getIndex(java.lang.String key)
static RedundantExceptionFilter
getRedundantExceptionFilter()
protected boolean
isRedundant(int index, boolean updateRedundancy)
boolean
isRedundantException(java.lang.String exceptionMessage)
boolean
isRedundantException(java.lang.String exceptionMessage, boolean updateRedundancy)
boolean
isRedundantException(java.lang.String storeName, java.lang.String exceptionType)
boolean
isRedundantException(java.lang.String storeName, java.lang.Throwable e)
void
shutdown()
-
-
-
Field Detail
-
DEFAULT_BITSET_SIZE
public static final int DEFAULT_BITSET_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_NO_REDUNDANT_EXCEPTION_DURATION_MS
public static final long DEFAULT_NO_REDUNDANT_EXCEPTION_DURATION_MS
-
-
Method Detail
-
getRedundantExceptionFilter
public static RedundantExceptionFilter getRedundantExceptionFilter()
-
isRedundantException
public boolean isRedundantException(java.lang.String exceptionMessage)
-
isRedundantException
public boolean isRedundantException(java.lang.String exceptionMessage, boolean updateRedundancy)
-
isRedundantException
public boolean isRedundantException(java.lang.String storeName, java.lang.Throwable e)
-
isRedundantException
public boolean isRedundantException(java.lang.String storeName, java.lang.String exceptionType)
-
clearBitSet
public final void clearBitSet()
-
shutdown
public void shutdown()
-
getIndex
protected int getIndex(java.lang.String key)
-
isRedundant
protected boolean isRedundant(int index, boolean updateRedundancy)
-
-