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