Example usage for io.netty.channel.epoll EpollDatagramChannel EpollDatagramChannel

List of usage examples for io.netty.channel.epoll EpollDatagramChannel EpollDatagramChannel

Introduction

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

Prototype

public EpollDatagramChannel() 

Source Link

Document

Create a new instance which selects the InternetProtocolFamily to use depending on the Operation Systems default which will be chosen.

Usage

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

License:Open Source License

@Override
public DatagramChannel datagramChannel() {
    return new EpollDatagramChannel();
}

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

License:Open Source License

@Override
public DatagramChannel datagramChannel(InternetProtocolFamily family) {
    return new EpollDatagramChannel();
}

From source file:org.graylog2.inputs.transports.netty.DatagramChannelFactory.java

License:Open Source License

@Override
public DatagramChannel newChannel() {
    switch (transportType) {
    case EPOLL:/*from   ww  w.j  ava 2  s. c  o m*/
        return new EpollDatagramChannel();
    case KQUEUE:
        return new KQueueDatagramChannel();
    case NIO:
        return new NioDatagramChannel();
    default:
        throw new IllegalArgumentException("Invalid or unknown Netty transport type " + transportType);
    }
}