Annotation Interface RSocketExchange
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Reflective(org.springframework.messaging.rsocket.service.RSocketExchangeReflectiveProcessor.class)
public @interface RSocketExchange
Annotation to declare an RSocket endpoint on an RSocket service interface.
Supported for use as an RSocket requester via
RSocketServiceProxyFactory, and as a responder by implementing the
interface to handle requests.
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 byMimeType | 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 SummaryOptional Elements
- 
Element Details- 
valueString valueDestination-based mapping expressed by this annotation. This is eitherAntPathMatcherorPathPatternbased pattern, depending on which is configured viaRSocketStrategiesinRSocketRequester.- Default:
- ""
 
 
-