Interface FailureHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
      Initialization method for the handler.
      void onFailure​(org.apache.flink.types.Row row, String errorMessage)
      Deprecated.
      Handle a failed jdbc request.
      void open​(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 Throwable
        Deprecated.
        Handle a failed jdbc request.
        Parameters:
        row - The row that is on failure
        errorMessage - 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.
      • close

        void close()
            throws Exception
        Deprecated.
        Initialization method for the handler.
        Throws:
        Exception - The function may throw exceptions which cause the streaming program to fail and go into recovery.