Class UdpServerListeningEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.integration.events.IntegrationEvent
org.springframework.integration.ip.event.IpIntegrationEvent
org.springframework.integration.ip.udp.UdpServerListeningEvent
All Implemented Interfaces:
Serializable

public class UdpServerListeningEvent extends IpIntegrationEvent
IpIntegrationEvent emitted when a server begins listening. Useful when the configured port is zero and the operating system chooses the port. Also useful to avoid polling the isListening() if you need to wait before starting some other process to connect to the socket.
Since:
5.0.2
See Also:
  • Field Summary

    Fields inherited from class org.springframework.integration.events.IntegrationEvent

    cause

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    UdpServerListeningEvent(Object adapter, int port)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     

    Methods inherited from class org.springframework.integration.events.IntegrationEvent

    getCause, getSourceAsType, toString

    Methods inherited from class org.springframework.context.ApplicationEvent

    getTimestamp

    Methods inherited from class java.util.EventObject

    getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UdpServerListeningEvent

      public UdpServerListeningEvent(Object adapter, int port)
  • Method Details

    • getPort

      public int getPort()