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

        public void setSocketFactoryProcessors(Collection<? extends ServerRSocketFactoryProcessor> socketFactoryProcessors)
        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
      • addSocketFactoryProcessors

        public void addSocketFactoryProcessors(ServerRSocketFactoryProcessor... socketFactoryProcessors)
        Add ServerRSocketFactoryProcessors that should be called to process the RSocketFactory.ServerRSocketFactory while building the server.
        Parameters:
        socketFactoryProcessors - processors to apply before the server starts
      • setLifecycleTimeout

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

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.