Interface AsyncStateProcessingOperator

    • Method Detail

      • setAsyncKeyedContextElement

        <T> void setAsyncKeyedContextElement​(StreamRecord<T> record,
                                             org.apache.flink.api.java.functions.KeySelector<T,​?> keySelector)
                                      throws Exception
        Set key context for async state processing.
        Type Parameters:
        T - the type of the record.
        Parameters:
        record - the record.
        keySelector - the key selector to select a key from record.
        Throws:
        Exception
      • postProcessElement

        void postProcessElement()
        A callback that will be triggered after an element finishes processElement.
      • preserveRecordOrderAndProcess

        void preserveRecordOrderAndProcess​(org.apache.flink.util.function.ThrowingRunnable<Exception> processing)
        Check the order of same-key record, and then process the record. Mainly used when the getElementOrder() returns ElementOrder.RECORD_ORDER.
        Parameters:
        processing - the record processing logic.
      • asyncProcessWithKey

        <K> void asyncProcessWithKey​(K key,
                                     org.apache.flink.util.function.ThrowingRunnable<Exception> processing)
        Asynchronously process a code with a key provided.
        Type Parameters:
        K - the type of key.
        Parameters:
        key - the specified key.
        processing - the process logic.