Skip to content

Improve RSocketRequester.ResponseSpec Kotlin extensions #23164

@juergenzimmermann

Description

@juergenzimmermann

Affects: Spring Framework 5.2.0-M3

It would be nice to have Kotlin extension functions for RSocketRequester.ResponseSpec so that one could write in Kotlin style, e.g.:

requester.route("find-by-id")
    .data(CustomerIdRequest(id))
    .retrieveMono<Customer>()

instead of

requester.route("find-by-id")
    .data(CustomerIdRequest(id))
    .retrieveMono(Customer::class.java)

In the same way it would be nice to have .retrieveFlux<T>()

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