Class AmqpSourceConfig
java.lang.Object
org.apache.kafka.common.config.AbstractConfig
io.aiven.commons.kafka.config.CommonConfig
io.aiven.commons.kafka.connector.common.config.ConnectorCommonConfig
io.aiven.commons.kafka.connector.source.config.SourceCommonConfig
io.aiven.kafka.connect.amqp.source.config.AmqpSourceConfig
- All Implemented Interfaces:
AmqpCommonConfig
public class AmqpSourceConfig
extends io.aiven.commons.kafka.connector.source.config.SourceCommonConfig
implements AmqpCommonConfig
The configuration for an AMQP Source connector.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aiven.commons.kafka.connector.source.config.SourceCommonConfig
io.aiven.commons.kafka.connector.source.config.SourceCommonConfig.SourceCommonConfigDefNested classes/interfaces inherited from class io.aiven.commons.kafka.config.CommonConfig
io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap -
Field Summary
Fields inherited from class org.apache.kafka.common.config.AbstractConfig
AUTOMATIC_CONFIG_PROVIDERS_PROPERTY, CONFIG_PROVIDERS_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.qpid.protonj2.client.ClientCreates a AMQP client.org.apache.qpid.protonj2.client.ConnectiongetConnection(org.apache.qpid.protonj2.client.Client client) Creates a new Connection to an AMQP client.org.apache.qpid.protonj2.client.ReceivergetReceiver(org.apache.qpid.protonj2.client.Connection connection) Creates a new AMQP Receiver.booleanisStream()Determins if we are processing a stream.Methods inherited from class io.aiven.commons.kafka.connector.source.config.SourceCommonConfig
getCsvExtractorHeader, getDistributionType, getErrorsTolerance, getExtractor, getExtractorBufferSize, getExtractorCacheSize, getMaxPollRecords, getNativeStartKey, getRingBufferSize, getTargetTopic, isCsvExtractorHeaderEnabledMethods inherited from class io.aiven.commons.kafka.connector.common.config.ConnectorCommonConfig
fragmentPostProcess, getCompressionType, getKeyConverterSchemaRegistryUrl, getSchemaRegistryUrl, getValueConverterSchemaRegistryUrl, isKeyConverterRegistryEnabled, isSchemaRegistryEnabled, isValueConverterRegistryEnabledMethods inherited from class io.aiven.commons.kafka.config.CommonConfig
finalize, getKafkaRetryBackoffMs, getMaxTasks, getTaskId, postProcessParsedConfigMethods inherited from class org.apache.kafka.common.config.AbstractConfig
documentationOf, equals, get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, nonInternalValues, originals, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverrideMethods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.aiven.kafka.connect.amqp.common.config.AmqpCommonConfig
getReceiver
-
Constructor Details
-
AmqpSourceConfig
Constructor.- Parameters:
originals- the initial configuration data.
-
-
Method Details
-
getReceiver
public org.apache.qpid.protonj2.client.Receiver getReceiver(org.apache.qpid.protonj2.client.Connection connection) throws org.apache.qpid.protonj2.client.exceptions.ClientException, ExecutionException, InterruptedException Description copied from interface:AmqpCommonConfigCreates a new AMQP Receiver.- Specified by:
getReceiverin interfaceAmqpCommonConfig- Parameters:
connection- the AMQP connection to use for the receiver.- Returns:
- the new AMQP Receiver. Must be closed when finished.
- Throws:
org.apache.qpid.protonj2.client.exceptions.ClientException- if the AMQP receiver can not be created.ExecutionException- If the receiver could not be created.InterruptedException- If the remote server was interrupted.
-
getClient
public org.apache.qpid.protonj2.client.Client getClient()Description copied from interface:AmqpCommonConfigCreates a AMQP client. Must be closed when finished.- Specified by:
getClientin interfaceAmqpCommonConfig- Returns:
- a newly constructed client.
-
getConnection
public org.apache.qpid.protonj2.client.Connection getConnection(org.apache.qpid.protonj2.client.Client client) throws org.apache.qpid.protonj2.client.exceptions.ClientException Description copied from interface:AmqpCommonConfigCreates a new Connection to an AMQP client.- Specified by:
getConnectionin interfaceAmqpCommonConfig- Parameters:
client- the client to connect to.- Returns:
- the Connection. Must be closed when finished.
- Throws:
org.apache.qpid.protonj2.client.exceptions.ClientException- if the AMQP connection can not be established.
-
isStream
public boolean isStream()Determins if we are processing a stream.- Returns:
trueif the AMQP messages are from a stram,falseif they are not.
-