Java Code Examples for io.debezium.relational.history.DatabaseHistoryException

Following code examples demonstrate how to use io.debezium.relational.history.DatabaseHistoryExceptionfrom debezium. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use io.debezium.relational.history.DatabaseHistoryExceptionand various code implementation of this class.

    protected void storeRecord(HistoryRecord record) throws DatabaseHistoryException {
        if (this.producer == null) {
            throw new IllegalStateException("No producer is available. Ensure that 'start()'" +
                " is called before storing database history records.");
        }
        if (log.isTraceEnabled()) {
            log.trace("Storing record into database history: {}", record);
        }
        try {
            producer.send(record.toString());
        } catch (PulsarClientException e) {
            throw new DatabaseHistoryException(e);
        }
    } 


Advertisement
Javadoc
@author Randall Hauch
Advertisement