Class LocalCache.KeyMask

  • Enclosing class:
    LocalCache

    protected class LocalCache.KeyMask
    extends Base
    A class that masks certain changes so that they are not reported back to the CacheStore.
    • Constructor Detail

      • KeyMask

        protected KeyMask()
    • Method Detail

      • isIgnored

        public boolean isIgnored​(Object oKey)
        Check if a key should be ignored.
        Parameters:
        oKey - the key that a change event has occurred for
        Returns:
        true if change events for the key should be ignored
      • isSynthetic

        public boolean isSynthetic()
        Check whether or not the currently performed operation is internally initiated.
        Returns:
        true iff the current operation is internal
      • setSynthetic

        public void setSynthetic​(boolean fSynthetic)
        Specify whether or not the currently performed operation is internally initiated.
        Parameters:
        fSynthetic - true iff the the current operation is internal
      • isExpired

        public boolean isExpired()
        Check whether or not the currently performed operation has been initiated because the entry expired.
        Returns:
        true iff the entry has expired
        Since:
        22.06
      • setExpired

        public void setExpired​(boolean fExpired)
        Specify whether or not the currently performed operation concerns an expired entry
        Parameters:
        fExpired - true iff the current operation is an expiration one
        Since:
        22.06
      • ensureSynthetic

        public boolean ensureSynthetic()
        Ensure that the synthetic operation flag is set.
        Returns:
        the previous value of the flag
      • ensureExpired

        public boolean ensureExpired()
        Ensure that the expired operation flag is set.
        Returns:
        the previous value of the flag
        Since:
        22.06