Interface DecayingBoolean

All Known Implementing Classes:
DecayingBooleanImpl, NeverDecayingBoolean

public interface DecayingBoolean
A boolean that decays to its initial state after a defined period passed since the last use.
  • Method Details

    • get

      boolean get()
    • compareAndSet

      boolean compareAndSet(boolean expect, boolean update)
    • set

      void set(boolean b)
    • onDecay

      DecayingBoolean onDecay(Runnable runnable)