Class NettyRSocketServer
java.lang.Object
org.springframework.boot.rsocket.netty.NettyRSocketServer
- All Implemented Interfaces:
- RSocketServer
RSocketServer that is based on a Reactor Netty server. Usually this class
should be created using the NettyRSocketServerFactory and not directly.- Since:
- 2.2.0
- Author:
- Brian Clozel
- 
Nested Class SummaryNested classes/interfaces inherited from interface RSocketServerRSocketServer.Transport
- 
Constructor SummaryConstructorsConstructorDescriptionNettyRSocketServer(reactor.core.publisher.Mono<io.rsocket.transport.netty.server.CloseableChannel> starter, @Nullable Duration lifecycleTimeout) 
- 
Method SummaryModifier and TypeMethodDescription@Nullable InetSocketAddressaddress()Return the address this server is listening on.voidstart()Starts the RSocket server.voidstop()Stops the RSocket server.
- 
Constructor Details- 
NettyRSocketServerpublic NettyRSocketServer(reactor.core.publisher.Mono<io.rsocket.transport.netty.server.CloseableChannel> starter, @Nullable Duration lifecycleTimeout) 
 
- 
- 
Method Details- 
addressDescription copied from interface:RSocketServerReturn the address this server is listening on.- Specified by:
- addressin interface- RSocketServer
- Returns:
- the address
 
- 
startDescription copied from interface:RSocketServerStarts the RSocket server. Calling this method on an already started server has no effect.- Specified by:
- startin interface- RSocketServer
- Throws:
- RSocketServerException- if the server cannot be started
 
- 
stopDescription copied from interface:RSocketServerStops the RSocket server. Calling this method on an already stopped server has no effect.- Specified by:
- stopin interface- RSocketServer
- Throws:
- RSocketServerException- if the server cannot be stopped
 
 
-