接口 ConfigurableRSocketServerFactory

所有已知实现类:
NettyRSocketServerFactory

public interface ConfigurableRSocketServerFactory
A configurable RSocketServerFactory.
从以下版本开始:
2.2.0
作者:
Brian Clozel, Scott Frederick
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    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
    setSsl(Ssl ssl)
    Sets the SSL configuration that will be applied to the server's default connector.
    void
    Sets an SSL bundle that can be used to get SSL configuration.
    void
    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

      void setFragmentSize(DataSize fragmentSize)
      Specify the maximum transmission unit. Frames larger than the specified fragmentSize are fragmented.
      参数:
      fragmentSize - the fragment size
      从以下版本开始:
      2.4.0
    • setAddress

      void setAddress(InetAddress address)
      Set the specific network address that the server should bind to.
      参数:
      address - the address to set (defaults to null)
    • setTransport

      void setTransport(RSocketServer.Transport transport)
      Set the transport that the RSocket server should use.
      参数:
      transport - the transport protocol to use
    • setSsl

      void setSsl(Ssl ssl)
      Sets the SSL configuration that will be applied to the server's default connector.
      参数:
      ssl - the SSL configuration
    • setSslBundles

      void setSslBundles(SslBundles sslBundles)
      Sets an SSL bundle that can be used to get SSL configuration.
      参数:
      sslBundles - the SSL bundles
      从以下版本开始:
      3.1.0