Class NeverDecayingBoolean
- java.lang.Object
-
- com.atlassian.bamboo.utils.concurrent.NeverDecayingBoolean
-
- All Implemented Interfaces:
DecayingBoolean
public class NeverDecayingBoolean extends Object implements DecayingBoolean
Simple implementation ofDecayingBoolean
that never decays.
-
-
Constructor Summary
Constructors Constructor Description NeverDecayingBoolean(boolean value)
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean get()
- Specified by:
get
in interfaceDecayingBoolean
-
compareAndSet
public boolean compareAndSet(boolean expect, boolean update)
- Specified by:
compareAndSet
in interfaceDecayingBoolean
-
set
public void set(boolean b)
- Specified by:
set
in interfaceDecayingBoolean
-
onDecay
public DecayingBoolean onDecay(Runnable runnable)
- Specified by:
onDecay
in interfaceDecayingBoolean
-
-