Example usage for io.netty.channel.epoll EpollChannelOption TCP_FASTOPEN_CONNECT

List of usage examples for io.netty.channel.epoll EpollChannelOption TCP_FASTOPEN_CONNECT

Introduction

In this page you can find the example usage for io.netty.channel.epoll EpollChannelOption TCP_FASTOPEN_CONNECT.

Prototype

ChannelOption TCP_FASTOPEN_CONNECT

To view the source code for io.netty.channel.epoll EpollChannelOption TCP_FASTOPEN_CONNECT.

Click Source Link

Usage

From source file:io.vertx.core.net.impl.transport.EpollTransport.java

License:Open Source License

@Override
public void configure(ClientOptionsBase options, Bootstrap bootstrap) {
    if (options.isTcpFastOpen()) {
        bootstrap.option(EpollChannelOption.TCP_FASTOPEN_CONNECT, options.isTcpFastOpen());
    }/*  w ww  .  ja  v  a 2 s.c o  m*/
    bootstrap.option(EpollChannelOption.TCP_QUICKACK, options.isTcpQuickAck());
    bootstrap.option(EpollChannelOption.TCP_CORK, options.isTcpCork());
    super.configure(options, bootstrap);
}