Class CachedComponent

java.lang.Object
com.jedox.palojlib.main.CachedComponent
Direct Known Subclasses:
Cube, Database, Dimension

public abstract class CachedComponent extends Object
abstract class which manages the cache logic
Author:
khaddadin
  • 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