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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
compareAndSet(boolean expect, boolean update)
boolean
get()
DecayingBoolean
onDecay(Runnable runnable)
void
set(boolean b)
-
-
-
Method Detail
-
get
boolean get()
-
compareAndSet
boolean compareAndSet(boolean expect, boolean update)
-
set
void set(boolean b)
-
onDecay
DecayingBoolean onDecay(Runnable runnable)
-
-