Class NeverDecayingBoolean
java.lang.Object
com.atlassian.bamboo.utils.concurrent.NeverDecayingBoolean
- All Implemented Interfaces:
DecayingBoolean
Simple implementation of
DecayingBoolean that never decays.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompareAndSet(boolean expect, boolean update) booleanget()voidset(boolean b)
-
Constructor Details
-
NeverDecayingBoolean
public NeverDecayingBoolean(boolean value)
-
-
Method Details
-
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
- Specified by:
onDecayin interfaceDecayingBoolean
-