Package io.debezium.pipeline
Class ChangeEventSourceCoordinator.ChangeEventSourceContextImpl
java.lang.Object
io.debezium.pipeline.ChangeEventSourceCoordinator.ChangeEventSourceContextImpl
- All Implemented Interfaces:
ChangeEventSource.ChangeEventSourceContext
- Enclosing class:
ChangeEventSourceCoordinator<P extends Partition,O extends OffsetContext>
public class ChangeEventSourceCoordinator.ChangeEventSourceContextImpl
extends Object
implements ChangeEventSource.ChangeEventSourceContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
lock
-
snapshotFinished
-
streamingPaused
-
streamingRunning
-
-
Constructor Details
-
ChangeEventSourceContextImpl
public ChangeEventSourceContextImpl()
-
-
Method Details
-
isPaused
public boolean isPaused()Description copied from interface:ChangeEventSource.ChangeEventSourceContextWhether this source is paused.- Specified by:
isPausedin interfaceChangeEventSource.ChangeEventSourceContext
-
isRunning
public boolean isRunning()Description copied from interface:ChangeEventSource.ChangeEventSourceContextWhether this source is running or has been requested to stop.- Specified by:
isRunningin interfaceChangeEventSource.ChangeEventSourceContext
-
resumeStreaming
Description copied from interface:ChangeEventSource.ChangeEventSourceContextCalled to indicate that the snapshot has been completed and that streaming should therefore continue.- Specified by:
resumeStreamingin interfaceChangeEventSource.ChangeEventSourceContext- Throws:
InterruptedException
-
waitSnapshotCompletion
Description copied from interface:ChangeEventSource.ChangeEventSourceContextWait for the resumeStreaming function to be called, which indicates that a snapshot is done and that streaming should resume.- Specified by:
waitSnapshotCompletionin interfaceChangeEventSource.ChangeEventSourceContext- Throws:
InterruptedException
-
streamingPaused
public void streamingPaused()Description copied from interface:ChangeEventSource.ChangeEventSourceContextCalled by the StreamingChangeEventSource to indicate that the streaming has now been paused, and that no streaming records are being processed anymore.- Specified by:
streamingPausedin interfaceChangeEventSource.ChangeEventSourceContext
-
waitStreamingPaused
Description copied from interface:ChangeEventSource.ChangeEventSourceContextWait for the streamingPaused function to be called.- Specified by:
waitStreamingPausedin interfaceChangeEventSource.ChangeEventSourceContext- Throws:
InterruptedException
-