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

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

Introduction

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

Prototype

public void setDefaultOutputChannel(MessageChannel defaultOutputChannel) 

Source Link

Document

Set the default channel where Messages should be sent if channel resolution fails to return any 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  w w  .j a v a  2 s.c om
    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;
}