Class SourceSignalChannel
java.lang.Object
io.debezium.pipeline.signal.channels.SourceSignalChannel
- All Implemented Interfaces:
SignalChannelReader
The class responsible for processing of signals delivered to Debezium via a dedicated signaling table.
The processor supports a common set of signals that it can process and every connector can register its own
additional signals.
The signalling table must conform to the structure
id STRING
- the unique identifier of the signal sent, usually UUID, can be used for deduplicationtype STRING
- the unique logical name of the code executing the signaldata STRING
- the data in JSON format that are passed to the signal code
- Author:
- Jiri Pechanec
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private static final org.slf4j.Logger
final Queue<SignalRecord>
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.debezium.pipeline.signal.channels.SignalChannelReader
reset
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CHANNEL_NAME
- See Also:
-
signals
-
connectorConfig
-
-
Constructor Details
-
SourceSignalChannel
public SourceSignalChannel()
-
-
Method Details
-
name
- Specified by:
name
in interfaceSignalChannelReader
-
init
- Specified by:
init
in interfaceSignalChannelReader
-
read
- Specified by:
read
in interfaceSignalChannelReader
-
close
public void close()- Specified by:
close
in interfaceSignalChannelReader
-
process
Used in streaming flow to add signals from signaling table- Parameters:
value
- Envelope with change from signaling table- Returns:
- true if the signal was processed
- Throws:
InterruptedException
-