public class ErrorCounter extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ErrorCounter.MinuteCounter
Unix epoch minute and error count for that minute
|
| Constructor and Description |
|---|
ErrorCounter() |
| Modifier and Type | Method and Description |
|---|---|
static ErrorItem |
getBaseError(StackifyError error)
Gets the base error (the last error in the causal chain)
|
static String |
getUniqueKey(ErrorItem errorItem)
Generates a unique key based on the error.
|
int |
incrementCounter(StackifyError error,
long epochMinute)
Increments the counter for this error in the epoch minute specified
|
void |
purgeCounters(long epochMinute)
Purges the errorCounter map of expired entries
|
public static ErrorItem getBaseError(StackifyError error)
error - The errorpublic static String getUniqueKey(ErrorItem errorItem)
errorItem - The error itempublic int incrementCounter(StackifyError error, long epochMinute)
error - The errorepochMinute - The epoch minutepublic void purgeCounters(long epochMinute)
epochMinute - The current timeCopyright © 2019 Stackify, LLC. All rights reserved.