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
Modifier and TypeMethodDescriptionboolean
compareAndSet
(boolean expect, boolean update) boolean
get()
void
set
(boolean b)
-
Method Details
-
get
boolean get() -
compareAndSet
boolean compareAndSet(boolean expect, boolean update) -
set
void set(boolean b) -
onDecay
-