reactor.net.netty.NettyServerSocketOptions Maven / Gradle / Ivy
The newest version!
package reactor.net.netty;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.nio.NioEventLoopGroup;
import reactor.function.Consumer;
import reactor.net.config.ServerSocketOptions;
/**
* Extends standard {@link ServerSocketOptions} with Netty-specific options.
*
* @author Jon Brisbin
*/
public class NettyServerSocketOptions extends ServerSocketOptions {
private Consumer pipelineConfigurer;
private NioEventLoopGroup eventLoopGroup;
public Consumer pipelineConfigurer() {
return pipelineConfigurer;
}
public NettyServerSocketOptions pipelineConfigurer(Consumer pipelineConfigurer) {
this.pipelineConfigurer = pipelineConfigurer;
return this;
}
public NioEventLoopGroup eventLoopGroup() {
return eventLoopGroup;
}
public NettyServerSocketOptions eventLoopGroup(NioEventLoopGroup eventLoopGroup) {
this.eventLoopGroup = eventLoopGroup;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy