public class PostgresStreamingChangeEventSource extends Object implements StreamingChangeEventSource
| Modifier and Type | Class and Description |
|---|---|
static interface |
PostgresStreamingChangeEventSource.PgConnectionSupplier |
ChangeEventSource.ChangeEventSourceContext| Modifier and Type | Field and Description |
|---|---|
private Clock |
clock |
private PostgresConnection |
connection |
private PostgresConnectorConfig |
connectorConfig |
private EventDispatcher<TableId> |
dispatcher |
private ErrorHandler |
errorHandler |
private Long |
lastCompletelyProcessedLsn |
private static org.slf4j.Logger |
LOGGER |
private PostgresOffsetContext |
offsetContext |
private Metronome |
pauseNoMessage |
private ReplicationConnection |
replicationConnection |
private AtomicReference<ReplicationStream> |
replicationStream |
private PostgresSchema |
schema |
private Snapshotter |
snapshotter |
private PostgresTaskContext |
taskContext |
private static int |
THROTTLE_NO_MESSAGE_BEFORE_PAUSE |
| Constructor and Description |
|---|
PostgresStreamingChangeEventSource(PostgresConnectorConfig connectorConfig,
Snapshotter snapshotter,
PostgresOffsetContext offsetContext,
PostgresConnection connection,
EventDispatcher<TableId> dispatcher,
ErrorHandler errorHandler,
Clock clock,
PostgresSchema schema,
PostgresTaskContext taskContext,
ReplicationConnection replicationConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
commitOffset(Map<String,?> offset) |
void |
execute(ChangeEventSource.ChangeEventSourceContext context) |
private static final org.slf4j.Logger LOGGER
private static final int THROTTLE_NO_MESSAGE_BEFORE_PAUSE
private final PostgresConnection connection
private final EventDispatcher<TableId> dispatcher
private final ErrorHandler errorHandler
private final Clock clock
private final PostgresSchema schema
private final PostgresOffsetContext offsetContext
private final PostgresConnectorConfig connectorConfig
private final PostgresTaskContext taskContext
private final ReplicationConnection replicationConnection
private final AtomicReference<ReplicationStream> replicationStream
private Long lastCompletelyProcessedLsn
private final Snapshotter snapshotter
private final Metronome pauseNoMessage
public PostgresStreamingChangeEventSource(PostgresConnectorConfig connectorConfig, Snapshotter snapshotter, PostgresOffsetContext offsetContext, PostgresConnection connection, EventDispatcher<TableId> dispatcher, ErrorHandler errorHandler, Clock clock, PostgresSchema schema, PostgresTaskContext taskContext, ReplicationConnection replicationConnection)
public void execute(ChangeEventSource.ChangeEventSourceContext context) throws InterruptedException
execute in interface StreamingChangeEventSourceInterruptedExceptionpublic void commitOffset(Map<String,?> offset)
commitOffset in interface StreamingChangeEventSourceCopyright © 2019 JBoss by Red Hat. All rights reserved.