Class RSocketServerInitializedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.rsocket.context.RSocketServerInitializedEvent
- All Implemented Interfaces:
Serializable
public class RSocketServerInitializedEvent
extends org.springframework.context.ApplicationEvent
Event to be published after the application context is refreshed and the
RSocketServer
is ready. Useful for obtaining the local port of a running
server.- Since:
- 2.2.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAccess theRSocketServer
.Access the source of the event (anRSocketServer
).Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
RSocketServerInitializedEvent
-
-
Method Details
-
getServer
Access theRSocketServer
.- Returns:
- the embedded RSocket server
-
getSource
Access the source of the event (anRSocketServer
).- Overrides:
getSource
in classEventObject
- Returns:
- the embedded web server
-