Example usage for org.springframework.integration.ip.udp UnicastSendingMessageHandler getAckPort

List of usage examples for org.springframework.integration.ip.udp UnicastSendingMessageHandler getAckPort

Introduction

In this page you can find the example usage for org.springframework.integration.ip.udp UnicastSendingMessageHandler getAckPort.

Prototype

public int getAckPort() 

Source Link

Usage

From source file:org.springframework.integration.ip.udp.DatagramPacketMulticastSendingHandlerTests.java

public void waitAckListening(UnicastSendingMessageHandler handler) throws InterruptedException {
    int n = 0;/*from  ww  w. j a v a2s.  c  om*/
    while (n++ < 100 && handler.getAckPort() == 0) {
        Thread.sleep(100);
    }
    assertTrue(n < 100);
}