Class RichAsyncFunction<IN,​OUT>

    • Constructor Detail

      • RichAsyncFunction

        public RichAsyncFunction()
    • Method Detail

      • asyncInvoke

        public abstract void asyncInvoke​(IN input,
                                         ResultFuture<OUT> resultFuture)
                                  throws Exception
        Description copied from interface: AsyncFunction
        Trigger async operation for each stream input.
        Specified by:
        asyncInvoke in interface AsyncFunction<IN,​OUT>
        Parameters:
        input - element coming from an upstream task
        resultFuture - to be completed with the result data
        Throws:
        Exception - in case of a user code error. An exception will make the task fail and trigger fail-over process.