public class ConnectorClientConfigRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectorClientConfigRequest.ClientType |
| Constructor and Description |
|---|
ConnectorClientConfigRequest(String connectorName,
ConnectorType connectorType,
Class<? extends Connector> connectorClass,
Map<String,Object> clientProps,
ConnectorClientConfigRequest.ClientType clientType) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
clientProps()
Provides configs with prefix "
producer.override." for source connectors and
also sink connectors that are configured with a DLQ topic. |
ConnectorClientConfigRequest.ClientType |
clientType()
|
Class<? extends Connector> |
connectorClass()
The class of the Connector.
|
String |
connectorName()
Name of the connector specified in the connector config.
|
ConnectorType |
connectorType()
Type of the Connector.
|
public ConnectorClientConfigRequest(String connectorName, ConnectorType connectorType, Class<? extends Connector> connectorClass, Map<String,Object> clientProps, ConnectorClientConfigRequest.ClientType clientType)
public Map<String,Object> clientProps()
producer.override." for source connectors and
also sink connectors that are configured with a DLQ topic.
Provides configs with prefix "consumer.override." for sink connectors and also
source connectors that are configured with a connector specific offsets topic (see
KIP-618
for more details).
Provides configs with prefix "admin.override." for sink connectors configured
with a DLQ topic and source connectors that are configured with exactly-once semantics,
a connector specific offsets topic or topic creation enabled (see
KIP-158
for more details).
producer.override.",
"consumer.override." or "admin.override.". The returned configs don't include the prefixes.public ConnectorClientConfigRequest.ClientType clientType()
ConnectorClientConfigRequest.ClientType.PRODUCER for ConnectorType.SOURCE
ConnectorClientConfigRequest.ClientType.CONSUMER for ConnectorType.SINK
ConnectorClientConfigRequest.ClientType.PRODUCER for DLQ in ConnectorType.SINK
ConnectorClientConfigRequest.ClientType.ADMIN for DLQ Topic Creation in ConnectorType.SINK
public String connectorName()
public ConnectorType connectorType()
ConnectorType.SINK or ConnectorType.SOURCE.