public class DecayingBooleanImpl extends Object implements DecayingBoolean
Constructor and Description |
---|
DecayingBooleanImpl(boolean initialValue,
boolean decayValue,
Duration ttl) |
DecayingBooleanImpl(boolean initialValue,
Duration ttl) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet(boolean expect,
boolean update) |
boolean |
get() |
DecayingBooleanImpl |
onDecay(Runnable runnable) |
void |
set(boolean b) |
public DecayingBooleanImpl(boolean initialValue, Duration ttl)
public DecayingBooleanImpl(boolean initialValue, boolean decayValue, Duration ttl)
public boolean get()
get
in interface DecayingBoolean
public boolean compareAndSet(boolean expect, boolean update)
compareAndSet
in interface DecayingBoolean
public void set(boolean b)
set
in interface DecayingBoolean
public DecayingBooleanImpl onDecay(Runnable runnable)
onDecay
in interface DecayingBoolean
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.