Interface FailureHandler

    • Method Detail

      • onFailure

        void onFailure​(KastRow kRow,
                       String errorMessage)
                throws Throwable
        Handle a failed jdbc request.
        Parameters:
        kRow - 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

        default void open​(org.apache.avro.Schema schema)
                   throws Exception
        Initialization method for the handler.
        Parameters:
        schema - the input row schema
        Throws:
        Exception - The function may throw exceptions which cause the streaming program to fail and go into recovery.
      • open

        default void open​(Map<String,​String> configuration,
                          org.apache.avro.Schema schema,
                          Map<String,​Object> meta)
                   throws Exception
        Initialization method for the function.
        Parameters:
        configuration - The configuration containing the parameters attached to the contract
        schema - the input row schema
        meta - the udf configuration parameters
        Throws:
        Exception - The function may throw exceptions which cause the streaming program to fail and go into recovery.
      • close

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