Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.33 KB

File metadata and controls

29 lines (16 loc) · 1.33 KB

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 Spring Framework.

Beans for injection

The RSocketConsumerConfiguration auto-configuration provides the following beans:

Function<Flux<Message<?>>, Mono<Void>> rsocketFunctionsConsumer

You can use rsocketFunctionsConsumer as a qualifier when injecting.

The returned Mono has to be subscribed. Or Consumer<Flux<Message<?>>> rsocketConsumer can be used instead which just does a Mono.block() before returning.

Configuration Options

All configuration properties are prefixed with rsocket.consumer.

For more information on the various options available, please see RsocketConsumerProperties.

Examples

See this test suite for learning more about this consumer.

Other usage

See this README where this consumer is used to create a Spring Cloud Stream based RSocket Sink application.