Package org.n52.iceland.cache
Class ContentCacheUpdate
- java.lang.Object
-
- org.n52.iceland.cache.ContentCacheUpdate
-
-
Constructor Summary
Constructors Constructor Description ContentCacheUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentCacheUpdatefail(OwsExceptionReport cause)Marks this cache update as failed.booleanfailed()WritableContentCachegetCache()OwsExceptionReportgetFailureCause()booleanisCompleteUpdate()ContentCacheUpdatereset()Clear any exceptions.ContentCacheUpdatesetCache(WritableContentCache cache)
-
-
-
Method Detail
-
getFailureCause
public OwsExceptionReport getFailureCause()
- Returns:
- the cause of failure or
null
-
fail
protected ContentCacheUpdate fail(OwsExceptionReport cause)
Marks this cache update as failed.- Parameters:
cause- the cause- Returns:
- this
-
failed
public boolean failed()
- Returns:
- if this update failed
-
getCache
public WritableContentCache getCache()
- Returns:
- the writable cache of this action
-
setCache
public ContentCacheUpdate setCache(WritableContentCache cache)
- Parameters:
cache- the writable cache for this action- Returns:
- this
-
reset
public ContentCacheUpdate reset()
Clear any exceptions.- Returns:
- this
-
isCompleteUpdate
public boolean isCompleteUpdate()
- Returns:
- if this a complete update that will replace the cache.
-
-