Skip to content

Support for registering handlers in RSocketRequester.Builder  #23170

Closed
@rstoyanchev

Description

@rstoyanchev

Currently client-side handling involves registering an acceptor, for example like so, which is likely an RSocketMessageHandler bean with manually registered handlers.

Arguably in this case there isn't much reason for applications to be aware of the RSocketMessageHandler nor to have it as a bean, so we should offer an option to register such client-side handlers directly with RSocketRequester.Builder, which would internally create the RSocketMessageHandler and configure it as an acceptor in the RSocketFactory.

In the Javadoc we should make it clear that registering handlers is a shortcut for creating an RSocketMessageHandler and configuring it as an acceptor. That latter still remains an option for more advanced cases and that should be made clear.

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions