public interface ExceptionInformation
Compatibility: This interface is not intended for implementation or extension by a client and may get additional methods in a new minor release.
Rationale: The information does not contain the time of the original expiry of the cache value. This is intentional. There is no information field to record the time of expiry past the expiry itself. The expiry time information is reset as soon as the expiry time is reached. To produce no overhead, the information provided by this interface is captured only in case an exception happens.
ExceptionPropagator
,
ResiliencePolicy
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
The original exception generated by the last recent loader call.
|
long |
getLoadTime()
Start time of the load operation that generated the recent exception.
|
int |
getRetryCount()
Number of retry attempts to load the value for the requested key.
|
long |
getSinceTime()
Start time of the load that generated the first exception.
|
long |
getUntil()
Time in millis until the next retry attempt.
|
Throwable getException()
int getRetryCount()
long getSinceTime()
long getLoadTime()
long getUntil()
ExceptionPropagator
.cache2k API documentation. Copyright © 2000–2017 headissue GmbH, Munich.