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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.boot.rsocket.server.RSocketServer
RSocketServer.Transport
-
Constructor Summary
ConstructorDescriptionNettyRSocketServer
(reactor.core.publisher.Mono<io.rsocket.transport.netty.server.CloseableChannel> starter, Duration lifecycleTimeout) -
Method Summary
-
Constructor Details
-
NettyRSocketServer
public NettyRSocketServer(reactor.core.publisher.Mono<io.rsocket.transport.netty.server.CloseableChannel> starter, Duration lifecycleTimeout)
-
-
Method Details
-
address
Description copied from interface:RSocketServer
Return the address this server is listening on.- Specified by:
address
in interfaceRSocketServer
- Returns:
- the address
-
start
Description copied from interface:RSocketServer
Starts the RSocket server. Calling this method on an already started server has no effect.- Specified by:
start
in interfaceRSocketServer
- Throws:
RSocketServerException
- if the server cannot be started
-
stop
Description copied from interface:RSocketServer
Stops the RSocket server. Calling this method on an already stopped server has no effect.- Specified by:
stop
in interfaceRSocketServer
- Throws:
RSocketServerException
- if the server cannot be stopped
-