Iggy

Send and receive message to Apache Iggy streaming platform.

What’s inside

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

Controls message acknowledgment behavior. When true, messages are automatically marked as processed after consumption. When false, enables manual offset management and allows setting a custom starting offset position

true

Boolean

camel.component.iggy.auto-create-stream

Whether to automatically create stream if it does not exist

true

Boolean

camel.component.iggy.auto-create-topic

Whether to automatically create topic if it does not exist

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

Polling strategy

TCP

String

camel.component.iggy.compression-algorithm

Compression algorithm for message payload

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

String

camel.component.iggy.consumers-count

Camel Iggy consumers count

1

Integer

camel.component.iggy.enabled

Whether to enable auto configuration of the iggy component. This is enabled by default.

Boolean

camel.component.iggy.host

Iggy server hostname or IP address

localhost

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

Maximum topic size in bytes (0 means unlimited)

0

Long

camel.component.iggy.message-expiry

Message expiry time in seconds (0 means no expiry)

0

Long

camel.component.iggy.partition-id

The consumer partition id

Long

camel.component.iggy.partitioning

Partitioning strategy for message distribution. The option is a org.apache.iggy.message.Partitioning type.

Partitioning

camel.component.iggy.partitions-count

Number of partitions for the topic

1

Long

camel.component.iggy.password

Iggy password

String

camel.component.iggy.poll-batch-size

The consumer poll batch size

10

Long

camel.component.iggy.polling-strategy

Polling strategy

next

String

camel.component.iggy.port

Iggy server port number

8090

Integer

camel.component.iggy.replication-factor

Replication factor for the topic

Short

camel.component.iggy.shutdown-timeout

Camel Iggy shutdown timeout

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

Defines the initial message offset position when autoCommit is disabled. Use 0 to start from the beginning of the stream, or specify a custom offset to resume from a particular point

0

Long

camel.component.iggy.stream-id

Stream identifier

Long

camel.component.iggy.stream-name

Stream name

String

camel.component.iggy.tls-certificate-path

Path to the TLS certificate file for the connection to the Iggy server

String

camel.component.iggy.tls-enabled

Whether to enable TLS for the connection to the Iggy server

false

Boolean

camel.component.iggy.use-global-ssl-context-parameters

Enable usage of global SSL context parameters.

false

Boolean

camel.component.iggy.username

Iggy username

String