@ThreadSafe @Internal public interface CoordinatorStore
CoordinatorStore
can be used for sharing some information among OperatorCoordinator
instances. Motivating example is/was combining/aggregating latest watermark
emitted by different sources in order to do the watermark alignment.
Implementations of this interface must ensure that all operations are atomic.
Modifier and Type | Method and Description |
---|---|
<R> R |
apply(Object key,
Function<Object,R> consumer) |
Object |
compute(Object key,
BiFunction<Object,Object,Object> mappingFunction) |
Object |
computeIfPresent(Object key,
BiFunction<Object,Object,Object> remappingFunction) |
boolean |
containsKey(Object key) |
Object |
get(Object key) |
Object |
putIfAbsent(Object key,
Object value) |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.