CacheInvalidationPolicy
| Modifier and Type | Field and Description |
|---|---|
| protected long | timeToLive
Number of milliseconds before invalidation. |
| Access | Constructor and Description |
|---|---|
| public | TimeToLiveCacheInvalidationPolicy()
INTERNAL: Default Constructor for Project XML Unless the timeToLive is set by method, objects will expire immediately |
| public | TimeToLiveCacheInvalidationPolicy(long
the number of milliseconds an object affected by this policy will live. timeToLive)PUBLIC: Construct a TimeToLiveCacheInvalidationPolicy |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides org. |
| public long | getExpiryTimeInMillis(CacheKey key)
Implements abstract org. |
| public long | |
| public boolean | isInvalidated(CacheKey key, long currentTimeMillis)
Implements abstract org. |
| public void |
| timeToLive | back to summary |
|---|---|
| protected long timeToLive Number of milliseconds before invalidation. | |
| TimeToLiveCacheInvalidationPolicy | back to summary |
|---|---|
| public TimeToLiveCacheInvalidationPolicy() INTERNAL: Default Constructor for Project XML Unless the timeToLive is set by method, objects will expire immediately | |
| TimeToLiveCacheInvalidationPolicy | back to summary |
|---|---|
| public TimeToLiveCacheInvalidationPolicy(long timeToLive) PUBLIC: Construct a TimeToLiveCacheInvalidationPolicy
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides org. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| getExpiryTimeInMillis | back to summary |
|---|---|
| public long getExpiryTimeInMillis(CacheKey key) Implements abstract org. INTERNAL: Return the next expiry time.
| |
| getTimeToLive | back to summary |
|---|---|
| public long getTimeToLive() PUBLIC: Return the time-to-live specified for this policy. | |
| isInvalidated | back to summary |
|---|---|
| public boolean isInvalidated(CacheKey key, long currentTimeMillis) Implements abstract org. INTERNAL: Return true if this object is set as invalid or has expired.
| |
| setTimeToLive | back to summary |
|---|---|
| public void setTimeToLive(long timeToLive) PUBLIC: Set the time-to-live specified by this policy. | |