public abstract class CommonConnectorConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CommonConnectorConfig.Version
The set of predefined versions e.g.
|
| Modifier and Type | Field and Description |
|---|---|
private Configuration |
config |
static String |
DATABASE_CONFIG_PREFIX |
static int |
DEFAULT_MAX_BATCH_SIZE |
static int |
DEFAULT_MAX_QUEUE_SIZE |
static long |
DEFAULT_POLL_INTERVAL_MILLIS |
private boolean |
emitTombstoneOnDelete |
private String |
heartbeatTopicsPrefix |
private String |
logicalName |
static Field |
MAX_BATCH_SIZE |
static Field |
MAX_QUEUE_SIZE |
private int |
maxBatchSize |
private int |
maxQueueSize |
static Field |
POLL_INTERVAL_MS |
private Duration |
pollInterval |
static Field |
SNAPSHOT_DELAY_MS |
static Field |
SNAPSHOT_FETCH_SIZE |
private Duration |
snapshotDelayMs |
private int |
snapshotFetchSize |
static Field |
SOURCE_STRUCT_MAKER_VERSION |
private SourceInfoStructMaker<? extends AbstractSourceInfo> |
sourceInfoStructMaker |
static Field |
TOMBSTONES_ON_DELETE |
| Modifier | Constructor and Description |
|---|---|
protected |
CommonConnectorConfig(Configuration config,
String logicalName,
int defaultSnapshotFetchSize) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfig()
Provides access to the "raw" config instance.
|
abstract String |
getContextName() |
String |
getHeartbeatTopicsPrefix() |
String |
getLogicalName() |
int |
getMaxBatchSize() |
int |
getMaxQueueSize() |
Duration |
getPollInterval() |
Duration |
getSnapshotDelay() |
int |
getSnapshotFetchSize() |
<T extends AbstractSourceInfo> |
getSourceInfoStructMaker() |
protected abstract SourceInfoStructMaker<?> |
getSourceInfoStructMaker(CommonConnectorConfig.Version version)
Returns the connector-specific
SourceInfoStructMaker based on the given configuration. |
boolean |
isEmitTombstoneOnDelete() |
private static int |
validateMaxQueueSize(Configuration config,
Field field,
Field.ValidationOutput problems) |
protected static int |
validateServerNameIsDifferentFromHistoryTopicName(Configuration config,
Field field,
Field.ValidationOutput problems) |
public static final int DEFAULT_MAX_QUEUE_SIZE
public static final int DEFAULT_MAX_BATCH_SIZE
public static final long DEFAULT_POLL_INTERVAL_MILLIS
public static final String DATABASE_CONFIG_PREFIX
public static final Field TOMBSTONES_ON_DELETE
public static final Field MAX_QUEUE_SIZE
public static final Field MAX_BATCH_SIZE
public static final Field POLL_INTERVAL_MS
public static final Field SNAPSHOT_DELAY_MS
public static final Field SNAPSHOT_FETCH_SIZE
public static final Field SOURCE_STRUCT_MAKER_VERSION
private final Configuration config
private final boolean emitTombstoneOnDelete
private final int maxQueueSize
private final int maxBatchSize
private final Duration pollInterval
private final String logicalName
private final String heartbeatTopicsPrefix
private final Duration snapshotDelayMs
private final int snapshotFetchSize
private final SourceInfoStructMaker<? extends AbstractSourceInfo> sourceInfoStructMaker
protected CommonConnectorConfig(Configuration config, String logicalName, int defaultSnapshotFetchSize)
public Configuration getConfig()
public boolean isEmitTombstoneOnDelete()
public int getMaxQueueSize()
public int getMaxBatchSize()
public Duration getPollInterval()
public String getLogicalName()
public abstract String getContextName()
public String getHeartbeatTopicsPrefix()
public Duration getSnapshotDelay()
public int getSnapshotFetchSize()
public <T extends AbstractSourceInfo> SourceInfoStructMaker<T> getSourceInfoStructMaker()
private static int validateMaxQueueSize(Configuration config, Field field, Field.ValidationOutput problems)
protected static int validateServerNameIsDifferentFromHistoryTopicName(Configuration config, Field field, Field.ValidationOutput problems)
protected abstract SourceInfoStructMaker<?> getSourceInfoStructMaker(CommonConnectorConfig.Version version)
SourceInfoStructMaker based on the given configuration.Copyright © 2019 JBoss by Red Hat. All rights reserved.