Package io.debezium.pipeline.source.spi
Interface ChangeEventSource.ChangeEventSourceContext
- All Known Implementing Classes:
ChangeEventSourceCoordinator.ChangeEventSourceContextImpl
- Enclosing interface:
ChangeEventSource
public static interface ChangeEventSource.ChangeEventSourceContext
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPaused()Whether this source is paused.booleanWhether this source is running or has been requested to stop.voidCalled to indicate that the snapshot has been completed and that streaming should therefore continue.voidCalled by the StreamingChangeEventSource to indicate that the streaming has now been paused, and that no streaming records are being processed anymore.voidWait for the resumeStreaming function to be called, which indicates that a snapshot is done and that streaming should resume.voidWait for the streamingPaused function to be called.
-
Method Details
-
isPaused
boolean isPaused()Whether this source is paused. -
isRunning
boolean isRunning()Whether this source is running or has been requested to stop. -
resumeStreaming
Called to indicate that the snapshot has been completed and that streaming should therefore continue.- Throws:
InterruptedException
-
waitSnapshotCompletion
Wait for the resumeStreaming function to be called, which indicates that a snapshot is done and that streaming should resume.- Throws:
InterruptedException
-
streamingPaused
void streamingPaused()Called by the StreamingChangeEventSource to indicate that the streaming has now been paused, and that no streaming records are being processed anymore. -
waitStreamingPaused
Wait for the streamingPaused function to be called.- Throws:
InterruptedException
-