Annotation Type BridgeFrom
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
public @interface BridgeFrom
Messaging Annotation to mark a
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.
- Since:
- 4.0
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Stringvalue -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringautoStartupjava.lang.StringphaseSpecify aSmartLifecyclephaseoption.Poller[]poller
-
Element Details
-
value
java.lang.String value- Returns:
- the inbound channel name to receive message for the
BridgeHandler
-
-
-
autoStartup
java.lang.String autoStartup- Default:
- "true"
-
phase
java.lang.String phaseSpecify aSmartLifecyclephaseoption. DefaultsInteger.MAX_VALUE / 2forPollingConsumerandInteger.MIN_VALUEforEventDrivenConsumer. Can be specified as 'property placeholder', e.g.${foo.phase}.- Returns:
- the
SmartLifecyclephase.
- Default:
- ""
-
poller
Poller[] poller- Returns:
- the
Polleroptions for a polled endpoint (PollerMetadata). This attribute is anarrayjust to allow an empty default (no poller). Only onePollerelement is allowed.
- Default:
- {}
-