Annotation Interface BridgeFrom
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Repeatable(BridgeFromRepeatable.class)
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
- Author:
- Artem Bilan, Chris Bono
-
Required Element Summary
-
Optional Element Summary
-
Element Details
-
value
String value- Returns:
- the inbound channel name to receive message for the
BridgeHandler
-
-
-
autoStartup
String autoStartup- Default:
- "true"
-
phase
String phaseSpecify aSmartLifecycle
phase
option. DefaultsInteger.MAX_VALUE / 2
forPollingConsumer
andInteger.MIN_VALUE
forEventDrivenConsumer
. Can be specified as 'property placeholder', e.g.${foo.phase}
.- Returns:
- the
SmartLifecycle
phase.
- Default:
- ""
-
poller
Poller poller- Returns:
- the
Poller
options for a polled endpoint (PollerMetadata
). Mutually exclusive withreactive()
.
- Default:
- @org.springframework.integration.annotation.Poller("\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n")
-
reactive
Reactive reactive- Default:
- @org.springframework.integration.annotation.Reactive("\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n")
-