@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface BridgeFrom
Bean
method for a MessageChannel to produce a
BridgeHandler and Consumer Endpoint.
The inputChannel for the AbstractEndpoint
is the value() of this annotation and determines the type of endpoint -
EventDrivenConsumer or
PollingConsumer.
The MessageChannel Bean
is used as the outputChannel of the BridgeHandler.
| 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
Specify a
SmartLifecycle phase option. |
Poller[] |
poller |
public abstract java.lang.String value
BridgeHandlerpublic abstract java.lang.String phase
SmartLifecycle phase option.
Defaults Integer.MAX_VALUE / 2 for PollingConsumer
and Integer.MIN_VALUE for EventDrivenConsumer.
Can be specified as 'property placeholder', e.g. ${foo.phase}.SmartLifecycle 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.