oracle.toplink.descriptors.invalidation
Class DailyCacheInvalidationPolicy
java.lang.Object
oracle.toplink.descriptors.invalidation.CacheInvalidationPolicy
oracle.toplink.descriptors.invalidation.DailyCacheInvalidationPolicy
- All Implemented Interfaces:
- java.io.Serializable
public class DailyCacheInvalidationPolicy
- extends CacheInvalidationPolicy
A CacheInvalidationPolicy that allows objects to expire every day at a specific time.
A daily cache invalidation policy is created with an hour, minute, second and millisecond
when objects will expire. Objects will expire in the cache every day at that time.
- See Also:
CacheInvalidationPolicy
,
Serialized Form
Constructor Summary |
DailyCacheInvalidationPolicy(int hour,
int minute,
int second,
int millisecond)
Construct a daily policy that will allow objects to expire at a specific time of day. |
Method Summary |
void |
setExpiryTime(int hour,
int minute,
int second,
int millisecond)
Set a new expiry time for this object
Provide the hour, minute, second and millisecond. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DailyCacheInvalidationPolicy
public DailyCacheInvalidationPolicy(int hour,
int minute,
int second,
int millisecond)
- 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.
setExpiryTime
public void setExpiryTime(int hour,
int minute,
int second,
int millisecond)
- 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.