@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface InboundChannelAdapter
Message
or Message payload.
A method annotated with @InboundChannelAdapter can't accept any parameters.
Return values from the annotated method may be of any type. If the return
value is not a Message, a Message
will be created with that object as its payload.
The result Message will be sent to the provided value().
@InboundChannelAdapter is an analogue of <int:inbound-channel-adapter/>. With that
the PollerMetadata is required to to initiate
the method invocation. Or poller() should be provided, or the
PollerMetadata.DEFAULT_POLLER bean has to be configured
in the application context.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
autoStartup |
java.lang.String |
phase |
Poller[] |
poller |
public abstract java.lang.String value
Message.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.
NOTE: a Poller here has Poller.maxMessagesPerPoll() set to 1 by default.