Class TcpConnectionServerListeningEvent
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.tcp.connection.TcpConnectionServerListeningEvent
- All Implemented Interfaces:
Serializable
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:
- 4.3
- Author:
- Gary Russell
- See Also:
-
Field Summary
Fields inherited from class org.springframework.integration.events.IntegrationEvent
causeFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTcpConnectionServerListeningEvent(TcpServerConnectionFactory connectionFactory, int port) -
Method Summary
Methods inherited from class org.springframework.integration.events.IntegrationEvent
getCause, getSourceAsType, toStringMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TcpConnectionServerListeningEvent
-
-
Method Details
-
getPort
public int getPort()
-