接口 ConfigurableRSocketServerFactory
- 所有已知实现类:
NettyRSocketServerFactory
public interface ConfigurableRSocketServerFactory
A configurable
RSocketServerFactory
.- 从以下版本开始:
- 2.2.0
- 作者:
- Brian Clozel, Scott Frederick
-
方法概要
修饰符和类型方法说明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
setPort
(int port) Set the port that the server should listen on.void
Sets the SSL configuration that will be applied to the server's default connector.void
setSslBundles
(SslBundles sslBundles) Sets an SSL bundle that can be used to get SSL configuration.void
setTransport
(RSocketServer.Transport transport) Set the transport that the RSocket server should use.
-
方法详细资料
-
setPort
void setPort(int port) Set the port that the server should listen on. If not specified port '9898' will be used.- 参数:
port
- the port to set
-
setFragmentSize
Specify the maximum transmission unit. Frames larger than the specifiedfragmentSize
are fragmented.- 参数:
fragmentSize
- the fragment size- 从以下版本开始:
- 2.4.0
-
setAddress
Set the specific network address that the server should bind to.- 参数:
address
- the address to set (defaults tonull
)
-
setTransport
Set the transport that the RSocket server should use.- 参数:
transport
- the transport protocol to use
-
setSsl
Sets the SSL configuration that will be applied to the server's default connector.- 参数:
ssl
- the SSL configuration
-
setSslBundles
Sets an SSL bundle that can be used to get SSL configuration.- 参数:
sslBundles
- the SSL bundles- 从以下版本开始:
- 3.1.0
-