public interface EventConsumer
| Modifier and Type | Method and Description |
|---|---|
void |
applyDDL(Sequenced<DDLEvent> event)
Apply a DDL event, such as creating a table.
|
void |
applyDML(Sequenced<DMLEvent> event)
Apply a DML event.
|
void |
start()
Start the event consumer.
|
default void |
stop()
Stop the event consumer.
|
void start()
default void stop()
throws InterruptedException
InterruptedException - if the consumer was interrupted while stoppingvoid applyDDL(Sequenced<DDLEvent> event) throws Exception
event - ddl event to applyDeltaFailureException - if there was an error and the pipeline should immediately be failedException - if there was an error applying the change, but it might succeed in the futurevoid applyDML(Sequenced<DMLEvent> event) throws Exception
event - DML event to applyDeltaFailureException - if there was an error and the pipeline should immediately be failedException - if there was an error applying the change, but it might succeed in the futureCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.