Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ The reference documentation consists of the following sections:
[horizontal]
xref:spring-cloud-stream.adoc#spring-cloud-stream-reference[Overview] :: History, Quick Start, Concepts, Architecture Overview, Binder Abstraction, and Core Features

xref:rabbit/spring-cloud-stream-binder-rabbit.adoc[Rabbit MQ Binder] :: Spring Cloud Stream binder reference for Rabbit MQ
xref:rabbit/spring-cloud-stream-binder-rabbit.adoc[Rabbit MQ Binder] :: Spring Cloud Stream binder reference for RabbitMQ
xref:kafka/spring-cloud-stream-binder-kafka.adoc[Apache Kafka Binder] :: Spring Cloud Stream binder reference for Apache Kafka
xref:kafka/kafka-streams.adoc[Apache Kafka Streams Binder] :: Spring Cloud Stream binder reference for Apache Kafka Streams
xref:pulsar/spring-cloud-stream-binder-pulsar.adoc[Apache Pulsar Binder] :: Spring Cloud Stream binder reference for Apache Pulsar
https://github.com/SolaceProducts/solace-spring-cloud/tree/master/solace-spring-cloud-starters/solace-spring-cloud-stream-starter#spring-cloud-stream-binder-for-solace-pubsub[Solace PubSub+ Binder] :: Spring Cloud Stream binder reference for Solace PubSub+ (Partner Maintained)

xref:spring-cloud-stream/overview-error-handling.adoc#spring-cloud-stream-overview-binders[Additional Binders] :: A collection of Partner maintained binder implementations for Spring Cloud Stream (e.g., Azure Event Hubs, Google PubSub, Solace PubSub+)
xref:spring-cloud-stream/binders.adoc[Additional Binders] :: A collection of Partner maintained binder implementations for Spring Cloud Stream (e.g., Azure Event Hubs, Google PubSub, Solace PubSub+)
xref:schema-registry/spring-cloud-stream-schema-registry.adoc[Schema Registry] :: Spring Cloud Stream Schema Registry Reference
https://github.com/spring-cloud/spring-cloud-stream-samples/[Spring Cloud Stream Samples] :: A curated collection of repeatable Spring Cloud Stream samples to walk through the features

Expand Down
75 changes: 0 additions & 75 deletions docs/modules/ROOT/pages/intro.adoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ The bean is only registered as an ordinary health indicator of the application.

To provide a custom health indicator for a particular binder, declare the `KafkaBinderHealth` bean in a configuration class and add that class to the context of the binder with `spring.main.sources`, which you set in the `environment` of the binder.

```
[source,java]
----
@Configuration
public class Kafka1HealthConfiguration {

Expand All @@ -101,13 +102,14 @@ public class Kafka1HealthConfiguration {
return new KafkaBinderHealthImplementation(...);
}
}
```
----

```
[source,properties]
----
spring.cloud.stream.binders.kafka1.type=kafka
spring.cloud.stream.binders.kafka1.environment.spring.main.sources=com.example.Kafka1HealthConfiguration
spring.cloud.stream.binders.kafka2.type=kafka
```
----

Do not annotate this class so that it is component scanned by the application, otherwise the bean is registered in the application context as well.
In this example only the `kafka1` binder uses the custom health indicator, while `kafka2` keeps the default one.
Expand Down
26 changes: 0 additions & 26 deletions docs/modules/ROOT/pages/sagan-index.adoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ The user must check for the binder type and then apply the necessary customizati

Here is an example of providing a `BinderCustomizer` bean.

[source, java]
[source,java]
----
@Bean
public BinderCustomizer binderCustomizer() {
return (binder, binderName) -> {
if (binder instanceof KafkaMessageChannelBinder kafkaMessageChannelBinder) {
kafkaMessageChannelBinder.setRebalanceListener(...);
}
else if (binder instanceof KStreamBinder) {
...
}
else if (binder instanceof RabbitMessageChannelBinder) {
...
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public Function<String, String> uppercase() {
return v -> v.toUpperCase();
}
----
there are two bindings named `uppercase-in-0` for input and `uppercase-out-0` for output. See <<Binding and Binding names>> for more details.
there are two bindings named `uppercase-in-0` for input and `uppercase-out-0` for output. See xref:spring-cloud-stream/binding-names.adoc[] for more details.

NOTE: To avoid repetition, Spring Cloud Stream supports setting values for all bindings, in the format of `spring.cloud.stream.default.<property>=<value>`
and `spring.cloud.stream.default.<producer|consumer>.<property>=<value>` for common binding properties.
Expand Down Expand Up @@ -42,12 +42,12 @@ See xref:spring-cloud-stream/consumer-groups.adoc[Consumer Groups].
Default: `null` (indicating an anonymous consumer).
contentType::
The content type of this binding.
See `xref:spring-cloud-stream/binding-properties.adoc#content-type-management[Content Type Negotiation]`.
See xref:spring-cloud-stream/content-type.adoc[Content Type Negotiation].
+
Default: `application/json`.
binder::
The binder used by this binding.
See `xref:spring-cloud-stream/multiple-binders.adoc[Multiple Binders on the Classpath]` for details.
See xref:spring-cloud-stream/multiple-binders.adoc[Multiple Binders on the Classpath] for details.
+
Default: `null` (the default binder is used, if it exists).

Expand Down Expand Up @@ -234,7 +234,7 @@ Default: false.
[[advanced-producer-configuration]]
== Advanced Producer Configuration

In some cases Producer Properties are not enough to properly configure a producing MessageHandler in the binder, or may be you prefer a programmatic approach
In some cases Producer Properties are not enough to properly configure a producing MessageHandler in the binder, or may be you prefer a programmatic approach
while configuring such producing MessageHandler. Regardless of the reason, spring-cloud-stream provides `ProducerMessageHandlerCustomizer` to accomplish it.


Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/spring-cloud-stream/bindings.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
As stated earlier, _Bindings_ provide a bridge between the external messaging system (e.g., queue, topic etc.) and application-provided _Producers_ and _Consumers_.

The following example shows a fully configured and functioning Spring Cloud Stream application that receives the payload of the message
as a `String` type (see xref:spring-cloud-stream/content-type.adoc#content_type_management[Content Type Negotiation] section), logs it to the console and sends it down stream after converting it to upper case.
as a `String` type (see xref:spring-cloud-stream/content-type.adoc[Content Type Negotiation] section), logs it to the console and sends it down stream after converting it to upper case.

[source, java]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[[content_type_management]]
[[content-type-management]]
= Content Type Negotiation

Data transformation is one of the core features of any message-driven microservice architecture. Given that, in Spring Cloud Stream, such data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The key represents an identifying name for the binder implementation, whereas th
Binder selection can either be performed globally, using the `spring.cloud.stream.defaultBinder` property (for example, `spring.cloud.stream.defaultBinder=rabbit`) or individually, by configuring the binder on each binding.
For instance, a processor application (that has bindings named `input` and `output` for read and write respectively) that reads from Kafka and writes to RabbitMQ can specify the following configuration:

[source]
[source,properties]
----
spring.cloud.stream.bindings.input.binder=kafka
spring.cloud.stream.bindings.output.binder=rabbit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This denotes a configuration that exists independently of the default binder con

The following example shows a typical configuration for a processor application that connects to two RabbitMQ broker instances:

[source,yml]
[source,yaml]
----
spring:
cloud:
Expand Down
Loading