Starting with version 4.0, when specifying a value attribute, you can also specify an optional type attribute. The root object of the evaluation context is the message that was returned from the flow initiated by this enricher - the input message if there is no request channel or the application context (using the SpEL syntax). That property should be settable on the target payload instance.Įxactly one of the value or expression attributes must be provided as well - the former for a literal value to set and the latter for a SpEL expression to be evaluated. Lets you configure a message poller if this endpoint is a polling consumer.Įach property sub-element provides the name of a property (through the mandatory name attribute). The cloned version would be used as the target payload for the ultimate reply. Internally, the send timeout is set on the MessagingTemplate and ultimately applied when invoking the send operation on the MessageChannel.īy default, the send timeout is set to '-1', which can cause the send operation on the MessageChannel, depending on the implementation, to block indefinitely.īoolean value indicating whether any payload that implements Cloneable should be cloned prior to sending the message to the request channel for acquiring the enriching data. Maximum amount of time in milliseconds to wait when sending a message to the channel, if the channel might block.įor example, a queue channel can block until space is available, if its maximum capacity has been reached. If it is not set, an Exception is thrown to the caller. This enables you to return an alternative object to use for enrichment. The channel to which an ErrorMessage is sent if an Exception occurs downstream of the request-channel. Typically, the auto-generated temporary reply channel suffices. Identifies the message channel where a message is sent after it is being processed by this endpoint.īy default, the original message’s payload is used as payload that is sent to the request-channel.īy specifying a SpEL expression as the value for the request-payload-expression attribute, you can use a subset of the original payload, a header value, or any other resolvable SpEL expression as the basis for the payload that is sent to the request-channel.įor the expression evaluation, the full message is available as the 'root object'.įor instance, the following SpEL expressions (among others) are possible: payload.something, headers.something, new (), 'thing1' + 'thing2'Ĭhannel where a reply message is expected. It has no effect when this endpoint is itself a polling consumer for a channel with a queue. This is particularly relevant when that channel is using a “failover” dispatching strategy. Specifies the order for invocation when this endpoint is connected as a subscriber to a channel. ID of the underlying bean definition, which is either an EventDrivenConsumer or a PollingConsumer. Lifecycle attribute signaling whether this component should be started during the application context startup. Channel to which a message is sent to get the data to use for enrichment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |