Package com.jedox.palojlib.main
Class CachedComponent
java.lang.Object
com.jedox.palojlib.main.CachedComponent
abstract class which manages the cache logic
- Author:
- khaddadin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
end the trust period, this does not delete the cache thoughprotected boolean
checks whether the current time is in the trust periodvoid
setCacheTrustExpiry
(int seconds) set the trust period ending at current time + seconds parameter
-
Field Details
-
cacheTrustExpiry
protected int cacheTrustExpiry
-
-
Constructor Details
-
CachedComponent
public CachedComponent()
-
-
Method Details
-
endTrustTime
protected void endTrustTime()end the trust period, this does not delete the cache though -
inTrustTime
protected boolean inTrustTime()checks whether the current time is in the trust period- Returns:
- true if in time otherwise false
-
setCacheTrustExpiry
public void setCacheTrustExpiry(int seconds) set the trust period ending at current time + seconds parameter- Parameters:
seconds
- length of trust period in seconds
-