Top Description Methods
org.springframework.messaging.rsocket.service

public @Interface RSocketExchange

extends Annotation
Annotations
@Target:TYPE, METHOD
@Retention:RUNTIME
@Documented
@Reflective:RSocketExchangeReflectiveProcessor
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, org.springframework.aot.hint.annotation.Reflective

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 by org.springframework.util.MimeType Add a metadata value MetadataArgumentResolver
org.springframework.util.MimeType Set the MIME type for the metadata value in the preceding argument MetadataArgumentResolver
Author
Rossen Stoyanchev
Since
6.0

Method Summary

Modifier and TypeMethod and Description
public String
value()

Destination-based mapping expressed by this annotation.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Destination-based mapping expressed by this annotation. This is either AntPathMatcher or PathPattern based pattern, depending on which is configured via org.springframework.messaging.rsocket.RSocketStrategies in org.springframework.messaging.rsocket.RSocketRequester.