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

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

Introduction

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

Prototype

@Override
    public ChannelFuture close() 

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 w w.j a  v a 2s . c o 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);
}