Class ExecuteSnapshot<P extends Partition>
java.lang.Object
io.debezium.pipeline.signal.actions.AbstractSnapshotSignal<P>
io.debezium.pipeline.signal.actions.snapshotting.ExecuteSnapshot<P>
- All Implemented Interfaces:
SignalAction<P>
The action to trigger an ad-hoc snapshot.
The action parameters are
type of snapshot and list of data-collections on which the
snapshot will be executed.- Author:
- Jiri Pechanec
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.pipeline.signal.actions.AbstractSnapshotSignal
AbstractSnapshotSignal.SnapshotType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChangeEventSourceCoordinator<P,? extends OffsetContext> private final EventDispatcher<P,? extends DataCollectionId> private static final org.slf4j.Loggerstatic final StringFields inherited from class io.debezium.pipeline.signal.actions.AbstractSnapshotSignal
FIELD_ADDITIONAL_CONDITION, FIELD_DATA_COLLECTIONS, FIELD_SURROGATE_KEY, FIELD_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionExecuteSnapshot(EventDispatcher<P, ? extends DataCollectionId> dispatcher, ChangeEventSourceCoordinator<P, ?> changeEventSourceCoordinator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanarrived(SignalPayload<P> signalPayload) getDataCollections(Document data) getSurrogateKey(Document data) Methods inherited from class io.debezium.pipeline.signal.actions.AbstractSnapshotSignal
getSnapshotType
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NAME
- See Also:
-
dispatcher
-
changeEventSourceCoordinator
private final ChangeEventSourceCoordinator<P extends Partition,? extends OffsetContext> changeEventSourceCoordinator
-
-
Constructor Details
-
ExecuteSnapshot
public ExecuteSnapshot(EventDispatcher<P, ? extends DataCollectionId> dispatcher, ChangeEventSourceCoordinator<P, ?> changeEventSourceCoordinator)
-
-
Method Details
-
arrived
- Parameters:
signalPayload- the content of the signal- Returns:
- true if the signal was processed
- Throws:
InterruptedException
-
getDataCollections
-
getAdditionalCondition
-
getSurrogateKey
-