Example usage for io.netty.channel.udt UdtChannel config

List of usage examples for io.netty.channel.udt UdtChannel config

Introduction

In this page you can find the example usage for io.netty.channel.udt UdtChannel config.

Prototype

@Override
UdtChannelConfig config();

Source Link

Document

Returns the UdtChannelConfig of the channel.

Usage

From source file:com.seagate.kinetic.client.io.provider.nio.udt.UdtClientChannelInitializer.java

License:Open Source License

@Override
protected void initChannel(UdtChannel ch) throws Exception {

    if (mservice.getConfiguration().getConnectTimeoutMillis() > 0) {
        ch.config().setConnectTimeoutMillis(mservice.getConfiguration().getConnectTimeoutMillis());
    }//w w  w.j av a 2  s  . c o  m

    ChannelPipeline p = ch.pipeline();

    p.addLast("handler", new UdtClientMessageServiceHandler(mservice));

    logger.info("UDT client nio channel initilized ...");
}