Configuration Properties

The pipelite-spring-starter module supports configuration via application.properties or application.yml.

External configuration properties via application.properties are under active development for version 0.2.0. Current configuration is primarily done through Spring beans and the ChannelConfigurer SPI.

Planned properties

The following properties are planned for upcoming releases:

Property Default Description

pipelite.enabled

true

Enables or disables Pipelite autoconfiguration.

pipelite.context.auto-start

true

Automatically starts the PipeliteContext at Spring bootstrap.

pipelite.adapters.http.port

80

Port for the Undertow HTTP server.

pipelite.adapters.http.host

0.0.0.0

Bind address for the HTTP server.

pipelite.adapters.kafka.bootstrap-servers

localhost:9092

Kafka bootstrap servers.

pipelite.adapters.kafka.group-id

pipelite-default

Kafka consumer group ID.

Current configuration via beans

Until external properties are available, use @Configuration beans:

HTTP

// Currently the port is fixed at 80.
// External configuration support is planned.

Kafka

@Bean
public KafkaChannelConfigurer kafkaConfigurer() {
    return config -> {
        config.setBootstrapServers("kafka-broker:9092");
        config.setGroupId("my-app-group");
        config.setAutoOffsetReset("earliest");
    };
}

The KafkaChannelConfigurer bean is automatically detected by the autoconfiguration and applied to the KafkaChannelAdapter.