Each of the functions return a new Duration that specifies the
amount of time that must pass before a cache entry is considered expired.
Duration has constants defined for useful durations.
Duration
| Modifier and Type | Method and Description |
|---|---|
| public Duration | Returns: the newDuration before an accessed entry expiresGets the |
| public Duration | Returns: the newDuration before a created entry expiresGets the |
| public Duration | Returns: the newDuration before an updated entry expiresGets the |
| getExpiryForAccess | back to summary |
|---|---|
| public Duration getExpiryForAccess() Gets the
This method is called by a caching implementation after a Cache.Entry is
accessed to determine the Should an exception occur while determining the Duration, an implementation specific default Duration will be used. | |
| getExpiryForCreation | back to summary |
|---|---|
| public Duration getExpiryForCreation() Gets the
This method is called by a caching implementation after a Cache.Entry is
created, but before a Cache.Entry is added to a cache, to determine the
Should an exception occur while determining the Duration, an implementation
specific default | |
| getExpiryForUpdate | back to summary |
|---|---|
| public Duration getExpiryForUpdate() Gets the
This method is called by the caching implementation after a Cache.Entry is
updated to determine the Should an exception occur while determining the Duration, an implementation specific default Duration will be used. | |