List of usage examples for io.netty.channel ChannelConfig isAutoRead
boolean isAutoRead();
From source file:org.jooby.internal.netty.NettyWebSocket.java
License:Apache License
@Override public void resume() { ChannelConfig config = ctx.channel().config(); if (!config.isAutoRead()) { config.setAutoRead(true);/*w ww .j av a 2 s. c o m*/ } }
From source file:org.jooby.internal.netty.NettyWebSocket.java
License:Apache License
@Override public void pause() { ChannelConfig config = ctx.channel().config(); if (config.isAutoRead()) { config.setAutoRead(false);/* www. j av a 2 s. co m*/ } }