Iggy
Send messages to and receive messages from topics of the Apache Iggy message streaming platform.
What’s inside
-
Iggy component, URI syntax:
iggy:topicName
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-iggy-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 32 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.iggy.auto-commit | Whether the server stores the offset of the consumer group when it returns the polled messages, before the route processes them. If false, the consumer polls from startingOffset and keeps the offset in memory only, so it starts again from startingOffset after a restart. | true | Boolean |
camel.component.iggy.auto-create-stream | Whether to create the stream if it does not exist. The producer and the consumer check it when they start, and the producer again for each message that has an override header. | true | Boolean |
camel.component.iggy.auto-create-topic | Whether to create the topic if it does not exist, with the partitionsCount, compressionAlgorithm, messageExpiry, maxTopicSize and iggyHeaderOptions options. The producer and the consumer check it when they start, and the producer again for each message that has an override header. | true | Boolean |
camel.component.iggy.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.iggy.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.iggy.client-transport | The transport that the client uses to connect to the Iggy server. | TCP | String |
camel.component.iggy.compression-algorithm | The compression algorithm of a topic that autoCreateTopic creates. | none | CompressionAlgorithm |
camel.component.iggy.configuration | Allows to pre-configure the Iggy component with common options that the endpoints will reuse. The option is a org.apache.camel.component.iggy.IggyConfiguration type. | IggyConfiguration | |
camel.component.iggy.consumer-group-name | The name of the consumer group that the consumer joins, and creates if it does not exist. Required for the consumer. | String | |
camel.component.iggy.enabled | Whether to enable auto configuration of the iggy component. This is enabled by default. | Boolean | |
camel.component.iggy.host | The hostname or IP address of the Iggy server. | localhost | String |
camel.component.iggy.iggy-header-options | Additional options of a topic that autoCreateTopic creates, as key-value pairs that are sent to the server as strings, for example durability. | String> | |
camel.component.iggy.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.iggy.max-topic-size | The maximum size in bytes of a topic that autoCreateTopic creates. With 0 no maximum size is set on the topic. | 0 | Long |
camel.component.iggy.message-expiry | The time in seconds after which the server deletes the messages of a topic that autoCreateTopic creates. With 0 no expiry is set on the topic. | 0 | Long |
camel.component.iggy.partition-id | The ID of the partition that the consumer polls. If not set, the server chooses the partition for the member of the consumer group. | Long | |
camel.component.iggy.partitioning | How the producer chooses the partition of the messages it sends, as an org.apache.iggy.message.Partitioning or as text: balanced() (the text balanced) spreads them over the partitions, partitionId(Long) (for example the text partitionId:2) sends to one partition and messagesKey(String) (for example the text messagesKey:order-1) to the partition of a key. The option is a org.apache.iggy.message.Partitioning type. | Partitioning | |
camel.component.iggy.partitions-count | The number of partitions of a topic that autoCreateTopic creates. | 1 | Long |
camel.component.iggy.password | The password that the client logs in with to the Iggy server. Required, together with the username option: the client fails to connect without them. | String | |
camel.component.iggy.poll-batch-size | The maximum number of messages that the consumer polls in one request. | 10 | Long |
camel.component.iggy.polling-strategy | Where the consumer polls from when autoCommit is true: next polls the messages after the offset stored for the consumer group, first the first messages of the partition, and last the last messages of the partition. | next | String |
camel.component.iggy.port | The port of the Iggy server. The default 8090 is the default port of the TCP transport of the server, so set the HTTP port of the server when clientTransport is HTTP. | 8090 | Integer |
camel.component.iggy.shutdown-timeout | The time in milliseconds that the consumer waits for its polling thread to finish when it stops, before it interrupts the thread. | 30000 | Integer |
camel.component.iggy.ssl-context-parameters | SSL configuration using an org.apache.camel.support.jsse.SSLContextParameters instance. This takes precedence over tlsEnabled and tlsCertificatePath when configured. The option is a org.apache.camel.support.jsse.SSLContextParameters type. | SSLContextParameters | |
camel.component.iggy.starting-offset | The offset of the first message that the consumer polls when autoCommit is false. 0 is the first message of the partition. | 0 | Long |
camel.component.iggy.stream-id | The ID of a stream that autoCreateStream looks up for the stream of the endpoint: if no stream has this ID, a stream named streamName is created. The stream of a CamelIggyStreamOverride header is looked up and created by its name. The producer and the consumer always address the stream by its name. | Long | |
camel.component.iggy.stream-name | The name of the stream that holds the topic. Required. The CamelIggyStreamOverride header replaces it for the producer. | String | |
camel.component.iggy.tls-certificate-path | The path to a certificate file in PEM format that the client trusts for the TLS connection to the Iggy server. If not set, the client uses the default trust store of the JVM. | String | |
camel.component.iggy.tls-enabled | Whether the client connects to the Iggy server over TLS. | false | Boolean |
camel.component.iggy.use-global-ssl-context-parameters | Enable usage of global SSL context parameters. | false | Boolean |
camel.component.iggy.username | The username that the client logs in with to the Iggy server. Required, together with the password option: the client fails to connect without them. | String | |
camel.component.iggy.consumers-count | The number of threads of the thread pool of the consumer. The consumer runs one polling task, so one thread polls the topic. Deprecation note: The consumer polls the topic with one task, so a value above 1 only adds idle threads | 1 | Integer |