List of usage examples for io.netty.channel.local LocalChannel close
@Override
public ChannelFuture close()
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); }