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