public class NettyRSocketServerFactory extends Object implements RSocketServerFactory, ConfigurableRSocketServerFactory
RSocketServerFactory that can be used to create RSocketServers backed
 by Netty.| Constructor and Description | 
|---|
| NettyRSocketServerFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addRSocketServerCustomizers(RSocketServerCustomizer... rSocketServerCustomizers)Add  RSocketServerCustomizers that should be called to configure theRSocketServer. | 
| NettyRSocketServer | create(io.rsocket.SocketAcceptor socketAcceptor)Gets a new fully configured but paused  RSocketServerinstance. | 
| void | setAddress(InetAddress address)Set the specific network address that the server should bind to. | 
| void | setFragmentSize(DataSize fragmentSize)Specify the maximum transmission unit. | 
| void | setLifecycleTimeout(Duration lifecycleTimeout)Set the maximum amount of time that should be waited when starting or stopping the
 server. | 
| void | setPort(int port)Set the port that the server should listen on. | 
| void | setResourceFactory(ReactorResourceFactory resourceFactory)Set the  ReactorResourceFactoryto get the shared resources from. | 
| void | setRSocketServerCustomizers(Collection<? extends RSocketServerCustomizer> rSocketServerCustomizers)Set  RSocketServerCustomizers that should be called to configure theRSocketServerwhile building the server. | 
| void | setSsl(Ssl ssl)Sets the SSL configuration that will be applied to the server's default connector. | 
| void | setSslStoreProvider(SslStoreProvider sslStoreProvider)Sets a provider that will be used to obtain SSL stores. | 
| void | setTransport(RSocketServer.Transport transport)Set the transport that the RSocket server should use. | 
public void setPort(int port)
ConfigurableRSocketServerFactorysetPort in interface ConfigurableRSocketServerFactoryport - the port to setpublic void setFragmentSize(DataSize fragmentSize)
ConfigurableRSocketServerFactoryfragmentSize are fragmented.setFragmentSize in interface ConfigurableRSocketServerFactoryfragmentSize - the fragment sizepublic void setAddress(InetAddress address)
ConfigurableRSocketServerFactorysetAddress in interface ConfigurableRSocketServerFactoryaddress - the address to set (defaults to null)public void setTransport(RSocketServer.Transport transport)
ConfigurableRSocketServerFactorysetTransport in interface ConfigurableRSocketServerFactorytransport - the transport protocol to usepublic void setSsl(Ssl ssl)
ConfigurableRSocketServerFactorysetSsl in interface ConfigurableRSocketServerFactoryssl - the SSL configurationpublic void setSslStoreProvider(SslStoreProvider sslStoreProvider)
ConfigurableRSocketServerFactorysetSslStoreProvider in interface ConfigurableRSocketServerFactorysslStoreProvider - the SSL store providerpublic void setResourceFactory(ReactorResourceFactory resourceFactory)
ReactorResourceFactory to get the shared resources from.resourceFactory - the server resourcespublic void setRSocketServerCustomizers(Collection<? extends RSocketServerCustomizer> rSocketServerCustomizers)
RSocketServerCustomizers that should be called to configure the
 RSocketServer while building the server. Calling this
 method will replace any existing customizers.rSocketServerCustomizers - customizers to apply before the server startspublic void addRSocketServerCustomizers(RSocketServerCustomizer... rSocketServerCustomizers)
RSocketServerCustomizers that should be called to configure the
 RSocketServer.rSocketServerCustomizers - customizers to apply before the server startspublic void setLifecycleTimeout(Duration lifecycleTimeout)
lifecycleTimeout - the lifecycle timeoutpublic NettyRSocketServer create(io.rsocket.SocketAcceptor socketAcceptor)
RSocketServerFactoryRSocketServer instance. Clients
 should not be able to connect to the returned server until
 RSocketServer.start() is called (which happens when the
 ApplicationContext has been fully refreshed).create in interface RSocketServerFactorysocketAcceptor - the socket acceptorRSocketServerRSocketServer.stop()