Files
stream-applications/functions/consumer/rsocket-consumer
Soby Chacko 3ce5f50cf9 RSocket consumer/sink
* This RSocket consumer is using the fire-and-forget strategy of execution.
* Generating the corresponding sink.
* Addressing the original PR review comments from
  https://github.com/spring-cloud/stream-applications/pull/116

* Addressing PR review comments

* Fix README

* Addressing PR review
2020-09-28 16:28:09 -04:00
..
2020-09-28 16:28:09 -04:00
2020-09-28 16:28:09 -04:00
2020-09-28 16:28:09 -04:00

# RSocket Consumer

A consumer that allows you to communicate to an RSocket route using its fire and forget strategy of execution.
The consumer uses the RSocket support from https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#rsocket-requester[Spring Framework].

## Beans for injection

You can import `RSocketConsumerConfiguration` in the application and then inject the following bean.

`Function<Flux<Message<?>>, Mono<Void>> rsocketConsumer`

You can use `rsocketConsumer` as a qualifier when injecting.

## Configuration Options

All configuration properties are prefixed with `rsocket.consumer`.

For more information on the various options available, please see link:src/main/java/org/springframework/cloud/fn/consumer/rsocket/RsocketConsumerProperties.java[RsocketConsumerProperties].

## Examples

See this link:src/test/java/org/springframework/cloud/fn/consumer/rsocket/RsocketConsumerTests.java[test suite] for learning more about this consumer.

## Other usage

See this https://github.com/spring-cloud/stream-applications/blob/master/applications/sink/rsocket-sink/README.adoc[README] where this consumer is used to create a Spring Cloud Stream based RSocket Sink application.