Example usage for io.netty.channel.local LocalChannel eventLoop

List of usage examples for io.netty.channel.local LocalChannel eventLoop

Introduction

In this page you can find the example usage for io.netty.channel.local LocalChannel eventLoop.

Prototype

@Override
    public EventLoop eventLoop() 

Source Link

Usage

From source file:org.waarp.openr66.protocol.utils.ChannelUtils.java

License:Open Source License

/**
 * To be used only with LocalChannel (NetworkChannel could be using SSL)
 * //from  w ww . j  a  va 2  s  .  co  m
 * @param channel
 */
public final static void close(final LocalChannel channel) {
    channel.eventLoop().schedule(new Runnable() {
        public void run() {
            channel.close();
        }
    }, Configuration.WAITFORNETOP, TimeUnit.MILLISECONDS);
}