Interface DecayingBoolean
-
- All Known Implementing Classes:
DecayingBooleanImpl,NeverDecayingBoolean
public interface DecayingBooleanA 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 booleancompareAndSet(boolean expect, boolean update)booleanget()DecayingBooleanonDecay(Runnable runnable)voidset(boolean b)
-
-
-
Method Detail
-
get
boolean get()
-
compareAndSet
boolean compareAndSet(boolean expect, boolean update)
-
set
void set(boolean b)
-
onDecay
DecayingBoolean onDecay(Runnable runnable)
-
-