public static interface EmbeddedEngine.Builder
EmbeddedEngine instances.| Modifier and Type | Method and Description |
|---|---|
EmbeddedEngine |
build()
Build a new connector with the information previously supplied to this builder.
|
EmbeddedEngine.Builder |
notifying(Consumer<org.apache.kafka.connect.source.SourceRecord> consumer)
Call the specified function for every
data change event read from the source database. |
EmbeddedEngine.Builder |
using(ClassLoader classLoader)
Use the specified class loader to find all necessary classes.
|
EmbeddedEngine.Builder |
using(Clock clock)
Use the specified clock when needing to determine the current time.
|
EmbeddedEngine.Builder |
using(Configuration config)
Use the specified configuration for the connector.
|
EmbeddedEngine.Builder |
using(EmbeddedEngine.CompletionCallback completionCallback)
When the engine's
EmbeddedEngine.run() method completes, call the supplied function with the results. |
EmbeddedEngine.Builder notifying(Consumer<org.apache.kafka.connect.source.SourceRecord> consumer)
data change event read from the source database.
This method must be called with a non-null consumer.consumer - the consumer functionEmbeddedEngine.Builder using(Configuration config)
config - the configurationEmbeddedEngine.Builder using(ClassLoader classLoader)
null or not calling this method
results in the connector using this class's class loader.classLoader - the class loaderEmbeddedEngine.Builder using(Clock clock)
null or not calling this
method results in the connector using the system clock.clock - the clockEmbeddedEngine.Builder using(EmbeddedEngine.CompletionCallback completionCallback)
EmbeddedEngine.run() method completes, call the supplied function with the results.completionCallback - the callback function; may be null if errors should be written to the logEmbeddedEngine build()
IllegalArgumentException - if a configuration or consumer function were not supplied before this method is calledCopyright © 2016 JBoss by Red Hat. All rights reserved.