Package org.opensaml.core.xml.persist
Interface ConditionalLoadXMLObjectLoadSaveManager<T extends XMLObject>
- Type Parameters:
T
- the base type of XML objects being managed
- All Superinterfaces:
XMLObjectLoadSaveManager<T>
- All Known Implementing Classes:
AbstractConditionalLoadXMLObjectLoadSaveManager
,FilesystemLoadSaveManager
,MapLoadSaveManager
public interface ConditionalLoadXMLObjectLoadSaveManager<T extends XMLObject>
extends XMLObjectLoadSaveManager<T>
Interface for specialization of
XMLObjectLoadSaveManager
implementations which
track the modify times of requested data such that XMLObjectLoadSaveManager.load(String)
returns
data only if the data associated with the key has been modified since the last
request.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the cached modified times for the last load for all keys.Clear the cached modified time for the last load of the specified key.Retrieve the cached modified time for the last load of the specified key.boolean
Get whetherXMLObjectLoadSaveManager.load(String)
will check and return data only if modified since the last request for that data.
-
Method Details
-
isLoadConditionally
boolean isLoadConditionally()Get whetherXMLObjectLoadSaveManager.load(String)
will check and return data only if modified since the last request for that data.- Returns:
- true if data modify time check is enabled, false if not
-
getLoadLastModified
Retrieve the cached modified time for the last load of the specified key.Note that this will be null if
XMLObjectLoadSaveManager.load(String)
has not been called for the specified key since construction or since the last call toclearLoadLastModified(String)
orclearAllLoadLastModified()
.- Parameters:
key
- the target key- Returns:
- the current cached modified time, may be null
-
clearLoadLastModified
Clear the cached modified time for the last load of the specified key.- Parameters:
key
- the target key- Returns:
- the previously cached modified time, or null if did not exist
-
clearAllLoadLastModified
void clearAllLoadLastModified()Clear the cached modified times for the last load for all keys.
-