org.springframework.boot.rsocket.netty

Class NettyRSocketServerFactory

  • java.lang.Object
    • org.springframework.boot.rsocket.netty.NettyRSocketServerFactory
    • Constructor Detail

      • NettyRSocketServerFactory

        public NettyRSocketServerFactory()
    • Method Detail

      • setResourceFactory

        public void setResourceFactory(org.springframework.http.client.reactive.ReactorResourceFactory resourceFactory)
        Set the ReactorResourceFactory to get the shared resources from.
        Parameters:
        resourceFactory - the server resources
      • setRSocketServerCustomizers

        public void setRSocketServerCustomizers(java.util.Collection<? extends RSocketServerCustomizer> rSocketServerCustomizers)
        Set RSocketServerCustomizers that should be called to configure the RSocketServer while building the server. Calling this method will replace any existing customizers.
        Parameters:
        rSocketServerCustomizers - customizers to apply before the server starts
        Since:
        2.2.7
      • addRSocketServerCustomizers

        public void addRSocketServerCustomizers(RSocketServerCustomizer... rSocketServerCustomizers)
        Add RSocketServerCustomizers that should be called to configure the RSocketServer.
        Parameters:
        rSocketServerCustomizers - customizers to apply before the server starts
        Since:
        2.2.7
      • setLifecycleTimeout

        public void setLifecycleTimeout(java.time.Duration lifecycleTimeout)
        Set the maximum amount of time that should be waited when starting or stopping the server.
        Parameters:
        lifecycleTimeout - the lifecycle timeout