Package io.debezium.pipeline.signal
Class ExecuteSnapshot
- java.lang.Object
-
- io.debezium.pipeline.signal.ExecuteSnapshot
-
- All Implemented Interfaces:
Signal.Action
public class ExecuteSnapshot extends Object implements Signal.Action
The action to trigger an ad-hoc snapshot. The action parameters aretype
of snapshot and list ofdata-collections
on which the snapshot will be executed.- Author:
- Jiri Pechanec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecuteSnapshot.SnapshotType
-
Field Summary
Fields Modifier and Type Field Description private EventDispatcher<? extends DataCollectionId>
dispatcher
private static String
FIELD_DATA_COLLECTIONS
private static String
FIELD_TYPE
private static org.slf4j.Logger
LOGGER
static String
NAME
-
Constructor Summary
Constructors Constructor Description ExecuteSnapshot(EventDispatcher<? extends DataCollectionId> dispatcher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
arrived(Signal.Payload signalPayload)
static List<String>
getDataCollections(Document data)
static ExecuteSnapshot.SnapshotType
getSnapshotType(Document data)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
FIELD_DATA_COLLECTIONS
private static final String FIELD_DATA_COLLECTIONS
- See Also:
- Constant Field Values
-
FIELD_TYPE
private static final String FIELD_TYPE
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
dispatcher
private final EventDispatcher<? extends DataCollectionId> dispatcher
-
-
Constructor Detail
-
ExecuteSnapshot
public ExecuteSnapshot(EventDispatcher<? extends DataCollectionId> dispatcher)
-
-
Method Detail
-
arrived
public boolean arrived(Signal.Payload signalPayload) throws InterruptedException
- Specified by:
arrived
in interfaceSignal.Action
- Parameters:
signalPayload
- the content of the signal- Returns:
- true if the signal was processed
- Throws:
InterruptedException
-
getSnapshotType
public static ExecuteSnapshot.SnapshotType getSnapshotType(Document data)
-
-