@Bean(bpi="exception,hash,count") public class StackTraceInfo extends Object implements Comparable<StackTraceInfo>
StackTraceDatabase
.Constructor and Description |
---|
StackTraceInfo(String exception,
long timeout,
int hash)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StackTraceInfo |
clone() |
int |
compareTo(StackTraceInfo o) |
int |
getCount()
Returns the number of times this stack trace was encountered.
|
String |
getException()
Returns the simple class name of the exception.
|
String |
getHash()
Returns an 8-byte hash of the stack trace.
|
StackTraceInfo |
increment()
Increments the occurrence count of this exception.
|
public StackTraceInfo(String exception, long timeout, int hash)
exception
- The simple name of the exception class. Can be timeout
- The time in UTC milliseconds at which point this stack trace info should be discarded from caches.hash
- The hash id of this stack trace.public int getCount()
public String getHash()
public String getException()
public StackTraceInfo increment()
public int compareTo(StackTraceInfo o)
compareTo
in interface Comparable<StackTraceInfo>
public StackTraceInfo clone()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.