Package io.debezium.server.events
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
-
-
Constructor Summary
Constructors Constructor Description ConnectorCompletedEvent(boolean success, String message, Throwable error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Throwable>getError()StringgetMessage()booleanisSuccess()StringtoString()
-
-
-
Method Detail
-
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
-
-