Annotation Interface RSocketExchange


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Reflective(org.springframework.messaging.rsocket.service.RSocketExchangeReflectiveProcessor.class) public @interface RSocketExchange
Annotation to declare a method on an RSocket service interface as an RSocket endpoint. The endpoint route is determined through the annotation attribute, and through the method arguments.

The annotation is supported at the type level to express a common route, to be inherited by all methods.

Supported method arguments:

Method Argument Description Resolver
@DestinationVariable Add a route variable to expand into the route DestinationVariableArgumentResolver
@Payload Set the input payload(s) for the request PayloadArgumentResolver
Object, if followed by MimeType Add a metadata value MetadataArgumentResolver
MimeType Set the MIME type for the metadata value in the preceding argument MetadataArgumentResolver
Since:
6.0
Author:
Rossen Stoyanchev
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Destination-based mapping expressed by this annotation.