Interface FailureHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Initialization method for the handler.
      void onFailure​(KastRow kRow, String errorMessage)
      Handle a failed jdbc request.
      void open​(org.apache.avro.Schema schema)
      Initialization method for the handler.
    • 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

        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.
      • close

        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.