Example usage for com.rabbitmq.client.impl NetworkConnection getLocalPort

List of usage examples for com.rabbitmq.client.impl NetworkConnection getLocalPort

Introduction

In this page you can find the example usage for com.rabbitmq.client.impl NetworkConnection getLocalPort.

Prototype

int getLocalPort();

Source Link

Document

Retrieve the local port number.

Usage

From source file:reactor.rabbitmq.Host.java

License:Open Source License

private static Host.ConnectionInfo findConnectionInfoFor(List<ConnectionInfo> xs, NetworkConnection c) {
    Host.ConnectionInfo result = null;//from w w  w . ja v a2 s . co m
    for (Host.ConnectionInfo ci : xs) {
        if (c.getLocalPort() == ci.getPeerPort()) {
            result = ci;
            break;
        }
    }
    return result;
}