Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.descriptors.invalidation
Class DailyCacheInvalidationPolicy

java.lang.Object
  extended by oracle.toplink.descriptors.invalidation.CacheInvalidationPolicy
      extended by 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

Field Summary
 
Fields inherited from class oracle.toplink.descriptors.invalidation.CacheInvalidationPolicy
NO_EXPIRY
 
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 oracle.toplink.descriptors.invalidation.CacheInvalidationPolicy
setShouldRefreshInvalidObjectsInUnitOfWork, setShouldUpdateReadTimeOnUpdate, shouldRefreshInvalidObjectsInUnitOfWork, shouldUpdateReadTimeOnUpdate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.


Copyright © 1998, 2012, Oracle. All Rights Reserved.