public final class ExceptionStats extends Object implements JmxStats<ExceptionStats>, JmxStatsWithReset
| Modifier and Type | Method and Description |
|---|---|
void |
add(ExceptionStats another) |
static ExceptionStats |
create() |
Object |
getContext() |
List<String> |
getError() |
Throwable |
getLastException() |
String |
getLastMessage() |
Instant |
getLastTime() |
String |
getLastType() |
String |
getMultilineError() |
int |
getTotal() |
void |
recordException(Throwable throwable) |
void |
recordException(Throwable throwable,
Object context) |
void |
resetStats() |
String |
toString() |
public static ExceptionStats create()
public void recordException(Throwable throwable)
public void resetStats()
resetStats in interface JmxStatsWithResetpublic void add(ExceptionStats another)
add in interface JmxStats<ExceptionStats>public int getTotal()
public String getMultilineError()
Copyright © 2019. All rights reserved.