Package io.github.kaststream.api
Interface FailureHandler
-
- All Superinterfaces:
Serializable
public interface FailureHandler extends Serializable
Deprecated.This class will be remove in next versionUse
FailureHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Initialization method for the handler.voidonFailure(org.apache.flink.types.Row row, String errorMessage)Deprecated.Handle a failed jdbc request.voidopen(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInformation)Deprecated.Initialization method for the handler.
-
-
-
Method Detail
-
onFailure
void onFailure(org.apache.flink.types.Row row, String errorMessage) throws ThrowableDeprecated.Handle a failed jdbc request.- Parameters:
row- The row that is on failureerrorMessage- the string describing the error- Throws:
Throwable- Throwable if the sink should fail on this failure, the implementation should rethrow the exception or a custom one
-
open
void open(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInformation) throws Exception
Deprecated.Initialization method for the handler.- Parameters:
typeInformation- the input row type information- Throws:
Exception- The function may throw exceptions which cause the streaming program to fail and go into recovery.
-
-