Interface CoordinatorStore
-
- All Known Implementing Classes:
CoordinatorStoreImpl
@ThreadSafe @Internal public interface CoordinatorStore
CoordinatorStore
can be used for sharing some information amongOperatorCoordinator
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-