Example usage for org.springframework.integration.ip.tcp.connection AbstractClientConnectionFactory isSingleUse

List of usage examples for org.springframework.integration.ip.tcp.connection AbstractClientConnectionFactory isSingleUse

Introduction

In this page you can find the example usage for org.springframework.integration.ip.tcp.connection AbstractClientConnectionFactory isSingleUse.

Prototype

public boolean isSingleUse() 

Source Link

Usage

From source file:org.springframework.integration.ip.tcp.connection.FailoverClientConnectionFactory.java

@Override
protected void onInit() throws Exception {
    super.onInit();
    for (AbstractClientConnectionFactory factory : factories) {
        Assert.state(!(this.isSingleUse() ^ factory.isSingleUse()),
                "Inconsistent singleUse - delegate factories must match this one");
    }// www . jav  a 2 s  .c om
}