SimpleBucketStateMap
Simple in-memory implementation of BucketStateMap. This implementation is thread-safe and uses ConcurrentHashMap to store the state.
Functions
Link copied to clipboard
Returns the AtomicReference of the BucketState for the given key. If the key is not present in the map, it returns null
.
Link copied to clipboard
open override fun putIfAbsent(key: String, value: AtomicReference<BucketState>): AtomicReference<BucketState>?
Puts the value in the map if the key is not present. If the key is already present, it returns the AtomicReference of the BucketState for the given key. If the key is not present in the map, it returns null
.