Package io.debezium.embedded.async
Class AsyncEmbeddedEngine.PollRecords
java.lang.Object
io.debezium.embedded.async.RetryingCallable<Void>
io.debezium.embedded.async.AsyncEmbeddedEngine.PollRecords
- Enclosing class:
- AsyncEmbeddedEngine<R>
Callable
which in the loop polls the connector for the records.
If there are any records, they are passed to the provided processor.
The Callable
is RetryingCallable
- if the RetriableException
is thrown, the Callable
is executed again according to configured DelayStrategy
and number of retries.-
Field Summary
Modifier and TypeFieldDescription(package private) final AtomicReference<AsyncEmbeddedEngine.State>
(package private) final RecordProcessor
(package private) final EngineSourceTask
-
Constructor Summary
ConstructorDescriptionPollRecords
(EngineSourceTask task, RecordProcessor processor, AtomicReference<AsyncEmbeddedEngine.State> engineState) -
Method Summary
Methods inherited from class io.debezium.embedded.async.RetryingCallable
call
-
Field Details
-
task
-
processor
-
engineState
-
-
Constructor Details
-
PollRecords
PollRecords(EngineSourceTask task, RecordProcessor processor, AtomicReference<AsyncEmbeddedEngine.State> engineState)
-
-
Method Details
-
doCall
- Specified by:
doCall
in classRetryingCallable<Void>
- Throws:
Exception
-
delayStrategy
- Specified by:
delayStrategy
in classRetryingCallable<Void>
-