@Internal
public interface AsyncStateProcessing
| Modifier and Type | Method and Description |
|---|---|
<T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> |
getRecordProcessor(int inputId)
Get the record processor that could process record from input, which is the only entry for
async processing.
|
boolean |
isAsyncStateProcessingEnabled()
Get if the async state processing is enabled for this input/operator.
|
static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> |
makeRecordProcessor(AsyncStateProcessingOperator asyncOperator,
org.apache.flink.api.java.functions.KeySelector<T,?> keySelector,
org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> processor)
Static method helper to make a record processor with given infos.
|
boolean isAsyncStateProcessingEnabled()
<T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor(int inputId)
inputId - the input identifier, start from 1. Borrow the design from org.apache.flink.streaming.api.operators.AbstractInput#inputId. This is only relevant if
there is multiple inputs for the instance.static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> makeRecordProcessor(AsyncStateProcessingOperator asyncOperator, org.apache.flink.api.java.functions.KeySelector<T,?> keySelector, org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> processor)
asyncOperator - the operator that can process state asynchronously.keySelector - the key selector.processor - the record processing logic.getRecordProcessor(int).Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.