public class OracleStreamingChangeEventSource extends Object implements io.debezium.pipeline.source.spi.StreamingChangeEventSource
StreamingChangeEventSource based on Oracle's XStream API. The XStream event handler loop is executed in a
separate executor.| Modifier and Type | Field and Description |
|---|---|
private io.debezium.util.Clock |
clock |
private io.debezium.pipeline.EventDispatcher<?> |
dispatcher |
private io.debezium.pipeline.ErrorHandler |
errorHandler |
private io.debezium.jdbc.JdbcConnection |
jdbcConnection |
private static org.slf4j.Logger |
LOGGER |
private OracleOffsetContext |
offsetContext |
private OracleDatabaseSchema |
schema |
private oracle.streams.XStreamOut |
xsOut |
private String |
xStreamServerName |
| Constructor and Description |
|---|
OracleStreamingChangeEventSource(OracleConnectorConfig connectorConfig,
OracleOffsetContext offsetContext,
io.debezium.jdbc.JdbcConnection jdbcConnection,
io.debezium.pipeline.EventDispatcher<?> dispatcher,
io.debezium.pipeline.ErrorHandler errorHandler,
io.debezium.util.Clock clock,
OracleDatabaseSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
commitOffset(Map<String,?> offset) |
private byte[] |
convertScnToPosition(long scn) |
void |
execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context) |
private static final org.slf4j.Logger LOGGER
private final io.debezium.jdbc.JdbcConnection jdbcConnection
private final io.debezium.pipeline.EventDispatcher<?> dispatcher
private final io.debezium.pipeline.ErrorHandler errorHandler
private final io.debezium.util.Clock clock
private final OracleDatabaseSchema schema
private final OracleOffsetContext offsetContext
private final String xStreamServerName
private volatile oracle.streams.XStreamOut xsOut
public OracleStreamingChangeEventSource(OracleConnectorConfig connectorConfig, OracleOffsetContext offsetContext, io.debezium.jdbc.JdbcConnection jdbcConnection, io.debezium.pipeline.EventDispatcher<?> dispatcher, io.debezium.pipeline.ErrorHandler errorHandler, io.debezium.util.Clock clock, OracleDatabaseSchema schema)
public void execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context)
throws InterruptedException
execute in interface io.debezium.pipeline.source.spi.StreamingChangeEventSourceInterruptedExceptionpublic void commitOffset(Map<String,?> offset)
commitOffset in interface io.debezium.pipeline.source.spi.StreamingChangeEventSourceprivate byte[] convertScnToPosition(long scn)
Copyright © 2018 JBoss by Red Hat. All rights reserved.