public class ExceptionWrapper<K> extends Object implements ExceptionInformation
Constructor and Description |
---|
ExceptionWrapper(K _key,
Throwable _exception,
long _loadTime,
Entry e)
Take over exception information from the entry, which either has
no exception, an existing cached exception or a suppressed exception.
|
ExceptionWrapper(K _key,
Throwable _exception,
long _loadTime,
ExceptionInformation w) |
ExceptionWrapper(long now,
Throwable ex) |
ExceptionWrapper(Throwable ex)
Constructs a wrapper with time set to 0.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getException() |
K |
getKey() |
long |
getLoadTime() |
int |
getRetryCount() |
long |
getSinceTime() |
long |
getUntil() |
void |
setUntil(long _until) |
String |
toString() |
public ExceptionWrapper(Throwable ex)
public ExceptionWrapper(long now, Throwable ex)
public ExceptionWrapper(K _key, Throwable _exception, long _loadTime, Entry e)
public ExceptionWrapper(K _key, Throwable _exception, long _loadTime, ExceptionInformation w)
public void setUntil(long _until)
public K getKey()
public Throwable getException()
getException
in interface ExceptionInformation
public long getUntil()
getUntil
in interface ExceptionInformation
public long getLoadTime()
getLoadTime
in interface ExceptionInformation
public int getRetryCount()
getRetryCount
in interface ExceptionInformation
public long getSinceTime()
getSinceTime
in interface ExceptionInformation
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.