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

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

Introduction

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

Prototype

public void setIgnoreSendFailures(boolean ignoreSendFailures) 

Source Link

Document

Specify whether send failures for one or more of the recipients should be ignored.

Usage

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

private AbstractMessageRouter configureRouter(AbstractMessageRouter router) {
    if (this.defaultOutputChannel != null) {
        router.setDefaultOutputChannel(this.defaultOutputChannel);
    }//from ww w  .jav  a2s .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;
}