Package io.github.kaststream.api
Interface AsyncProcessor
-
- All Superinterfaces:
Serializable
@Deprecated public interface AsyncProcessor extends Serializable
Deprecated.This class will be remove in next versionUse
AsyncProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidasyncInvoke(org.apache.flink.types.Row input, org.apache.flink.streaming.api.functions.async.ResultFuture<org.apache.flink.types.Row> resultFuture)Deprecated.Trigger async operation for each stream input.voidclose()Deprecated.Tear-down method for the user code (ex: clean resources from open).org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>getProducedType(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)Deprecated.Declare the data type information of the data produced by your function.voidopen(org.apache.flink.configuration.Configuration configuration, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)Deprecated.Initialization method for the function.
-
-
-
Method Detail
-
getProducedType
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Deprecated.Declare the data type information of the data produced by your function.- Parameters:
typeInfo- the input row type information- Returns:
- the output row type information
-
open
void open(org.apache.flink.configuration.Configuration configuration, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo) throws ExceptionDeprecated.Initialization method for the function. It is called before the actual working method.- Parameters:
configuration- The configuration containing the parameters attached to the contract.typeInfo- the input row type information- Throws:
Exception- The function may throw exceptions which cause the streaming program to fail and go into recovery.
-
close
void close() throws ExceptionDeprecated.Tear-down method for the user code (ex: clean resources from open).- Throws:
Exception- The function may throw exceptions which cause the streaming program to fail and go into recovery.
-
asyncInvoke
void asyncInvoke(org.apache.flink.types.Row input, org.apache.flink.streaming.api.functions.async.ResultFuture<org.apache.flink.types.Row> resultFuture) throws ExceptionDeprecated.Trigger async operation for each stream input.- Parameters:
input- element coming from an upstream taskresultFuture- 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.
-
-