Class ConnectorCompletedEvent

java.lang.Object
io.debezium.server.events.ConnectorCompletedEvent

public class ConnectorCompletedEvent extends Object
Fired when the connector was completed. Provides information about completion state, message and optional stacktrace in case of error.
Author:
Jiri Pechanec
  • Field Details

    • success

      private final boolean success
    • message

      private final String message
    • error

      private final Throwable error
  • Constructor Details

    • ConnectorCompletedEvent

      public ConnectorCompletedEvent(boolean success, String message, Throwable error)
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns:
      true if the connector was completed successfully
    • getMessage

      public String getMessage()
      Returns:
      message associated with connection completion
    • getError

      public Optional<Throwable> getError()
      Returns:
      optional error in case the connector has not started successfully or was terminated with an error
    • toString

      public String toString()
      Overrides:
      toString in class Object