@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 or with
channelMappings(), if provided.
| Modifier and Type | Optional Element and Description |
|---|---|
String |
applySequence |
String |
autoStartup |
String[] |
channelMappings
The 'key=value' pairs to represent channelMapping entries
|
String |
defaultOutputChannel |
String |
ignoreSendFailures |
String |
inputChannel |
String |
phase |
Poller[] |
poller |
String |
prefix |
String |
resolutionRequired |
String |
suffix |
public abstract String inputChannel
public abstract String defaultOutputChannel
public abstract String[] channelMappings
AbstractMappingMessageRouter.setChannelMapping(String, String)public abstract String prefix
public abstract String suffix
public abstract String resolutionRequired
public abstract String applySequence
public abstract String ignoreSendFailures
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.