public static ServerBootstrapConfiguration getServerBootstrapConfiguration ( Set < TransportProperty > transportPropertiesSet ) { Map < String , Object > transportProperties = new HashMap <> ( ) ; if ( transportPropertiesSet != null && ! transportPropertiesSet . isEmpty ( ) ) { transportProperties = transportPropertiesSet . stream ( ) . collect ( Collectors . toMap ( TransportProperty :: getName , TransportProperty :: getValue ) ) ; } // Create Bootstrap Configuration from listener parameters return new ServerBootstrapConfiguration ( transportProperties ) ; }
Create server bootstrap configuration from given transport property set .