Package io.activej.jmx.stats
Class ExceptionStats
java.lang.Object
io.activej.jmx.stats.ExceptionStats
- All Implemented Interfaces:
WithInitializer<ExceptionStats>,JmxStats<ExceptionStats>,JmxStatsWithReset
public final class ExceptionStats
extends Object
implements JmxStats<ExceptionStats>, JmxStatsWithReset, WithInitializer<ExceptionStats>
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ExceptionStats another) static ExceptionStatscreate()@Nullable ObjectgetError()@Nullable Throwable@Nullable String@Nullable Instant@Nullable StringintgetTotal()voidvoidrecordException(Throwable e, @Nullable Object context) voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.activej.common.initializer.WithInitializer
withInitializer
-
Method Details
-
create
-
recordException
-
recordException
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceJmxStatsWithReset
-
add
- Specified by:
addin interfaceJmxStats<ExceptionStats>
-
getTotal
public int getTotal() -
getLastType
-
getLastTime
-
getLastException
-
getLastMessage
-
getMultilineError
-
getError
-
toString
-
getContext
-