@Target(value={METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented public @interface Transformer
Modifier and Type | Optional Element and Description |
---|---|
String[] |
adviceChain
Specify a "chain" of
Advice objects that will "wrap" the message handler. |
String |
autoStartup
The
SmartLifecycle autoStartup option. |
String |
inputChannel
Specify the channel from which this transformer will consume messages.
|
String |
outputChannel
Specify the channel to which this transformer will send the transformed message.
|
String |
phase
Specify a
SmartLifecycle phase option. |
Poller[] |
poller |
String |
sendTimeout
Specify the maximum amount of time in milliseconds to wait when sending a reply
Message to the outputChannel . |
public abstract String inputChannel
DirectChannel
with this name will be
registered in the application context.public abstract String outputChannel
public abstract String[] adviceChain
Advice
objects that will "wrap" the message handler.
Only the handler is advised, not the downstream flow.public abstract String sendTimeout
Message
to the outputChannel
.
Defaults to -1
- blocking indefinitely.
It is applied only if the output channel has some 'sending' limitations, e.g.
QueueChannel
with
fixed a 'capacity'. In this case a MessageDeliveryException
is thrown.
The 'sendTimeout' is ignored in case of
AbstractSubscribableChannel
implementations.
Can be specified as 'property placeholder', e.g. ${spring.integration.sendTimeout}
.public abstract String autoStartup
SmartLifecycle
autoStartup
option.
Can be specified as 'property placeholder', e.g. ${foo.autoStartup}
.
Defaults to true
.boolean
flag.public abstract 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.