@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Gateway
GatewayProxyFactoryBean
where the annotation attributes can override the default channel settings.
A method annotated with @Gateway may accept a single non-annotated
parameter of type Message
or of the intended Message payload type. Method parameters may be mapped
to individual Message header values by using the @Header
parameter annotation. Alternatively, to pass the entire Message headers
map, a Map-typed parameter may be annotated with Headers
.
Return values from the annotated method may be of any type. If the
declared return value is not a Message, the reply Message's payload will be
returned and any type conversion as supported by Spring's
SimpleTypeConverter
will be applied to
the return value if necessary.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
replyChannel |
long |
replyTimeout |
java.lang.String |
requestChannel |
long |
requestTimeout |
public abstract java.lang.String requestChannel
public abstract java.lang.String replyChannel
public abstract long requestTimeout
public abstract long replyTimeout