Package org.mycore.common.xml
Class MCRXMLResource.ResourceModifiedHandle
java.lang.Object
org.mycore.common.xml.MCRXMLResource.ResourceModifiedHandle
- All Implemented Interfaces:
MCRCache.ModifiedHandle
- Enclosing class:
- MCRXMLResource
public static class MCRXMLResource.ResourceModifiedHandle
extends Object
implements MCRCache.ModifiedHandle
-
Constructor Summary
ConstructorDescriptionResourceModifiedHandle
(String name, ClassLoader classLoader, long checkPeriod) -
Method Summary
Modifier and TypeMethodDescriptionlong
check distance in ms.long
returns timestamp when the cache value was last modified.getURL()
-
Constructor Details
-
ResourceModifiedHandle
-
-
Method Details
-
getURL
-
getCheckPeriod
public long getCheckPeriod()Description copied from interface:MCRCache.ModifiedHandle
check distance in ms. After this period of time useMCRCache.ModifiedHandle.getLastModified()
to check if object is still up-to-date.- Specified by:
getCheckPeriod
in interfaceMCRCache.ModifiedHandle
-
getLastModified
Description copied from interface:MCRCache.ModifiedHandle
returns timestamp when the cache value was last modified.- Specified by:
getLastModified
in interfaceMCRCache.ModifiedHandle
- Throws:
IOException
-