public class PostgresChangeEventSourceFactory extends Object implements ChangeEventSourceFactory
| Modifier and Type | Field and Description |
|---|---|
private Clock |
clock |
private PostgresConnectorConfig |
configuration |
private EventDispatcher<TableId> |
dispatcher |
private ErrorHandler |
errorHandler |
private PostgresConnection |
jdbcConnection |
private ReplicationConnection |
replicationConnection |
private PostgresSchema |
schema |
private SlotCreationResult |
slotCreatedInfo |
private Snapshotter |
snapshotter |
private PostgresTaskContext |
taskContext |
| Constructor and Description |
|---|
PostgresChangeEventSourceFactory(PostgresConnectorConfig configuration,
Snapshotter snapshotter,
PostgresConnection jdbcConnection,
ErrorHandler errorHandler,
EventDispatcher<TableId> dispatcher,
Clock clock,
PostgresSchema schema,
PostgresTaskContext taskContext,
ReplicationConnection replicationConnection,
SlotCreationResult slotCreatedInfo) |
| Modifier and Type | Method and Description |
|---|---|
SnapshotChangeEventSource |
getSnapshotChangeEventSource(OffsetContext offsetContext,
SnapshotProgressListener snapshotProgressListener) |
StreamingChangeEventSource |
getStreamingChangeEventSource(OffsetContext offsetContext) |
private final PostgresConnectorConfig configuration
private final PostgresConnection jdbcConnection
private final ErrorHandler errorHandler
private final EventDispatcher<TableId> dispatcher
private final Clock clock
private final PostgresSchema schema
private final PostgresTaskContext taskContext
private final Snapshotter snapshotter
private final ReplicationConnection replicationConnection
private final SlotCreationResult slotCreatedInfo
public PostgresChangeEventSourceFactory(PostgresConnectorConfig configuration, Snapshotter snapshotter, PostgresConnection jdbcConnection, ErrorHandler errorHandler, EventDispatcher<TableId> dispatcher, Clock clock, PostgresSchema schema, PostgresTaskContext taskContext, ReplicationConnection replicationConnection, SlotCreationResult slotCreatedInfo)
public SnapshotChangeEventSource getSnapshotChangeEventSource(OffsetContext offsetContext, SnapshotProgressListener snapshotProgressListener)
getSnapshotChangeEventSource in interface ChangeEventSourceFactorypublic StreamingChangeEventSource getStreamingChangeEventSource(OffsetContext offsetContext)
getStreamingChangeEventSource in interface ChangeEventSourceFactoryCopyright © 2019 JBoss by Red Hat. All rights reserved.