CacheInvalidationPolicy
| Access | Constructor and Description |
|---|---|
| public | DailyCacheInvalidationPolicy()
INTERNAL: Default constructor for Project XML if setters are not called to set expiry times, expiry time will be the time of day at which this object is instantiated. |
| public | DailyCacheInvalidationPolicy(int hour, int minute, int second, int millisecond)
PUBLIC: Construct a daily policy that will allow objects to expire at a specific time of day. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides org. |
| public Calendar | |
| public long | getExpiryTimeInMillis(CacheKey key)
Implements abstract org. |
| public void | |
| public boolean | isInvalidated(CacheKey key, long currentTimeMillis)
Implements abstract org. |
| public void | setExpiryTime(int hour, int minute, int second, int millisecond)
PUBLIC: Set a new expiry time for this object Provide the hour, minute, second and millisecond. |
| public void |
| expiryTime | back to summary |
|---|---|
| protected Calendar expiryTime | |
| previousExpiry | back to summary |
|---|---|
| protected Calendar previousExpiry | |
| DailyCacheInvalidationPolicy | back to summary |
|---|---|
| public DailyCacheInvalidationPolicy() INTERNAL: Default constructor for Project XML if setters are not called to set expiry times, expiry time will be the time of day at which this object is instantiated. | |
| DailyCacheInvalidationPolicy | back to summary |
|---|---|
| public DailyCacheInvalidationPolicy(int hour, int minute, int second, int millisecond) PUBLIC: Construct a daily policy that will allow objects to expire at a specific time of day. Provide the hour, minute, second and millisecond. Objects that make use of this policy will be set to expire at that exact time every day. | |
| 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 | |
| getExpiryTime | back to summary |
|---|---|
| public Calendar getExpiryTime() INTERNAL: Get the expiry time as a Calendar. Used for setting the expiry time in deployment XML | |
| getExpiryTimeInMillis | back to summary |
|---|---|
| public long getExpiryTimeInMillis(CacheKey key) Implements abstract org. INTERNAL: Return the next expiry time.
| |
| incrementExpiry | back to summary |
|---|---|
| public void incrementExpiry() INTERNAL: Update the expiry time to be the day after the current day. | |
| isInvalidated | back to summary |
|---|---|
| public boolean isInvalidated(CacheKey key, long currentTimeMillis) Implements abstract org. INTERNAL: Return true if this object has expire or is invalid
| |
| setExpiryTime | back to summary |
|---|---|
| public void setExpiryTime(int hour, int minute, int second, int millisecond) PUBLIC: Set a new expiry time for this object Provide the hour, minute, second and millisecond. Objects which make use of this policy will be set to expire at that exact time every day. | |
| setExpiryTime | back to summary |
|---|---|
| public void setExpiryTime(Calendar calendar) INTERNAL: Set the expiry time based on a Calendar. Used for setting the expiry time from deployment XML. | |