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
      • setSocketFactoryProcessors

        @Deprecated
        public void setSocketFactoryProcessors(java.util.Collection<? extends ServerRSocketFactoryProcessor> socketFactoryProcessors)
        Deprecated. since 2.2.7 for removal in 2.4 in favor of setRSocketServerCustomizers(Collection)
        Set ServerRSocketFactoryProcessors that should be called to process the RSocketFactory.ServerRSocketFactory while building the server. Calling this method will replace any existing processors.
        Parameters:
        socketFactoryProcessors - processors to apply before the server starts
      • 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