Example usage for org.springframework.integration.router AbstractMessageRouter setApplySequence

List of usage examples for org.springframework.integration.router AbstractMessageRouter setApplySequence

Introduction

In this page you can find the example usage for org.springframework.integration.router AbstractMessageRouter setApplySequence.

Prototype

public void setApplySequence(boolean applySequence) 

Source Link

Document

Specify whether to apply the sequence number and size headers to the messages prior to sending to the recipient channels.

Usage

From source file:org.springframework.integration.config.RouterFactoryBean.java

private AbstractMessageRouter configureRouter(AbstractMessageRouter router) {
    if (this.defaultOutputChannel != null) {
        router.setDefaultOutputChannel(this.defaultOutputChannel);
    }/*from  w ww . j  a  va 2s . c o m*/
    if (this.timeout != null) {
        router.setTimeout(timeout.longValue());
    }
    if (this.applySequence != null) {
        router.setApplySequence(this.applySequence);
    }
    if (this.ignoreSendFailures != null) {
        router.setIgnoreSendFailures(this.ignoreSendFailures);
    }
    if (router instanceof AbstractMappingMessageRouter) {
        this.configureMappingRouter((AbstractMappingMessageRouter) router);
    }
    return router;
}