Class OverflowMap.ExpirableStatus

  • Enclosing class:
    OverflowMap

    protected static class OverflowMap.ExpirableStatus
    extends OverflowMap.Status
    The ExpirableStatus adds expiry to the base Status object.
    • Constructor Detail

      • ExpirableStatus

        public ExpirableStatus()
        Construct a Status object for a specific key.
    • Method Detail

      • getExpiry

        public long getExpiry()
        Determine the expiry for the entry represented by this Status.
        Overrides:
        getExpiry in class OverflowMap.Status
        Returns:
        the expiry, or 0L if there is no expiry
      • setExpiry

        public void setExpiry​(long ldtExpires)
        Specify the expiry for the entry represented by this Status.
        Overrides:
        setExpiry in class OverflowMap.Status
        Parameters:
        ldtExpires - the expiry, or 0L if the entry should not expire
      • hasExpiry

        public boolean hasExpiry()
        Determine if this Status represents an entry that will automatically expire.
        Overrides:
        hasExpiry in class OverflowMap.Status
        Returns:
        true iff the Status is for an entry that will expire
      • isExpired

        public boolean isExpired()
        Determine if this Status represents an entry that will automatically expire.
        Overrides:
        isExpired in class OverflowMap.Status
        Returns:
        true iff the Status is for an entry that will expire