Interface ITimerCache
-
- All Known Implementing Classes:
TimerCache
public interface ITimerCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Set<de.fraunhofer.iese.mydata.timer.Timer>>
getTimers()
void
invalidate()
invalidates the cacheboolean
isValid()
boolean
updateCache(Set<de.fraunhofer.iese.mydata.timer.Timer> timers)
updates cache content and refreshes validation timevoid
validate()
refreshes validation time of the cache without changing its contents
-
-
-
Method Detail
-
getTimers
Optional<Set<de.fraunhofer.iese.mydata.timer.Timer>> getTimers()
- Returns:
- the cached timers if cache is valid or else empty Optional
-
isValid
boolean isValid()
- Returns:
- whether the cache is valid
-
invalidate
void invalidate()
invalidates the cache
-
validate
void validate()
refreshes validation time of the cache without changing its contents
-
updateCache
boolean updateCache(Set<de.fraunhofer.iese.mydata.timer.Timer> timers)
updates cache content and refreshes validation time- Parameters:
timers
-- Returns:
- whether updating the cache succeeded
-
-