@Target(value={METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Inherited @Documented public @interface Router
A method annotated with @Router may accept a parameter of type
Message
or of the expected
Message payload's type. Any type conversion supported by
SimpleTypeConverter
will be applied to
the Message payload if necessary. Header values can also be passed as
Message parameters by using the @Header
parameter annotation.
Return values from the annotated method may be either a Collection or Array
whose elements are either
channels
or
Strings. In the latter case, the endpoint hosting this router will attempt
to resolve each channel name with the Channel Registry.
Modifier and Type | Optional Element and Description |
---|---|
String |
autoStartup |
String |
defaultOutputChannel |
String |
inputChannel |
String |
phase |
Poller[] |
poller |
public abstract String inputChannel
public abstract String defaultOutputChannel
public abstract String autoStartup
public abstract String phase
public abstract Poller[] poller
Poller
options for a polled endpoint
(PollerMetadata
).
This attribute is an array
just to allow an empty default (no poller).
Only one Poller
element is allowed.