public class ExceptionWrapper<K> extends Object implements org.cache2k.integration.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,
org.cache2k.integration.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 void setUntil(long _until)
public K getKey()
public Throwable getException()
getException in interface org.cache2k.integration.ExceptionInformationpublic long getUntil()
getUntil in interface org.cache2k.integration.ExceptionInformationpublic long getLoadTime()
getLoadTime in interface org.cache2k.integration.ExceptionInformationpublic int getRetryCount()
getRetryCount in interface org.cache2k.integration.ExceptionInformationpublic long getSinceTime()
getSinceTime in interface org.cache2k.integration.ExceptionInformationcache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.