public static interface DebeziumEngine.Builder<R>
DebeziumEngine instances.| Modifier and Type | Method and Description |
|---|---|
DebeziumEngine.Builder<R> |
asType(Class<? extends ChangeEventFormat<R>> format)
Prescribe the output format used by the
DebeziumEngine. |
DebeziumEngine<R> |
build()
Build a new connector with the information previously supplied to this builder.
|
DebeziumEngine.Builder<R> |
notifying(Consumer<R> consumer)
Call the specified function for every
data change event read from the source database. |
DebeziumEngine.Builder<R> |
notifying(DebeziumEngine.ChangeConsumer<R> handler)
Pass a custom ChangeConsumer override the default implementation,
this allows for more complex handling of records for batch and async handling
|
DebeziumEngine.Builder<R> |
using(ClassLoader classLoader)
Use the specified class loader to find all necessary classes.
|
DebeziumEngine.Builder<R> |
using(Clock clock)
Use the specified clock when needing to determine the current time.
|
DebeziumEngine.Builder<R> |
using(DebeziumEngine.CompletionCallback completionCallback)
When the engine's
Runnable.run() method completes, call the supplied function with the results. |
DebeziumEngine.Builder<R> |
using(DebeziumEngine.ConnectorCallback connectorCallback)
During the engine's
Runnable.run() method, call the supplied the supplied function at different
stages according to the completion state of each component running within the engine (connectors, tasks etc) |
DebeziumEngine.Builder<R> |
using(OffsetCommitPolicy policy)
During the engine's
Runnable.run() method, decide when the offsets
should be committed into the OffsetBackingStore. |
DebeziumEngine.Builder<R> |
using(Properties config)
Use the specified configuration for the connector.
|
DebeziumEngine.Builder<R> notifying(Consumer<R> consumer)
data change event read from the source database.
This method must be called with a non-null consumer.consumer - the consumer functionDebeziumEngine.Builder<R> notifying(DebeziumEngine.ChangeConsumer<R> handler)
handler - the consumer functionDebeziumEngine.Builder<R> using(Properties config)
config - the configurationDebeziumEngine.Builder<R> using(ClassLoader classLoader)
null or not calling this method
results in the connector using this class's class loader.classLoader - the class loaderDebeziumEngine.Builder<R> using(Clock clock)
null or not calling this
method results in the connector using the system clock.clock - the clockDebeziumEngine.Builder<R> using(DebeziumEngine.CompletionCallback completionCallback)
Runnable.run() method completes, call the supplied function with the results.completionCallback - the callback function; may be null if errors should be written to the logDebeziumEngine.Builder<R> using(DebeziumEngine.ConnectorCallback connectorCallback)
Runnable.run() method, call the supplied the supplied function at different
stages according to the completion state of each component running within the engine (connectors, tasks etc)connectorCallback - the callback function; may be nullDebeziumEngine.Builder<R> using(OffsetCommitPolicy policy)
Runnable.run() method, decide when the offsets
should be committed into the OffsetBackingStore.policy - DebeziumEngine.Builder<R> asType(Class<? extends ChangeEventFormat<R>> format)
DebeziumEngine.
Usually called by DebeziumEngine.create(java.lang.Class<? extends io.debezium.engine.ChangeEventFormat<T>>).format - DebeziumEngine<R> build()
IllegalArgumentException - if a configuration or consumer function were not supplied before this method is calledCopyright © 2020 JBoss by Red Hat. All rights reserved.