Class NeverDecayingBoolean
- java.lang.Object
-
- com.atlassian.bamboo.utils.concurrent.NeverDecayingBoolean
-
- All Implemented Interfaces:
DecayingBoolean
public class NeverDecayingBoolean extends Object implements DecayingBoolean
Simple implementation ofDecayingBooleanthat never decays.
-
-
Constructor Summary
Constructors Constructor Description NeverDecayingBoolean(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompareAndSet(boolean expect, boolean update)booleanget()DecayingBooleanonDecay(Runnable runnable)voidset(boolean b)
-
-
-
Method Detail
-
get
public boolean get()
- Specified by:
getin interfaceDecayingBoolean
-
compareAndSet
public boolean compareAndSet(boolean expect, boolean update)- Specified by:
compareAndSetin interfaceDecayingBoolean
-
set
public void set(boolean b)
- Specified by:
setin interfaceDecayingBoolean
-
onDecay
public DecayingBoolean onDecay(Runnable runnable)
- Specified by:
onDecayin interfaceDecayingBoolean
-
-