Example usage for io.netty.channel ChannelHandlerContext fireChannelWritabilityChanged

List of usage examples for io.netty.channel ChannelHandlerContext fireChannelWritabilityChanged

Introduction

In this page you can find the example usage for io.netty.channel ChannelHandlerContext fireChannelWritabilityChanged.

Prototype

@Override
    ChannelHandlerContext fireChannelWritabilityChanged();

Source Link

Usage

From source file:com.alibaba.dubbo.remoting.transport.netty4.NettyHandler.java

License:Apache License

@Override
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
    ctx.fireChannelWritabilityChanged();
}

From source file:com.couchbase.client.core.endpoint.AbstractGenericHandler.java

License:Apache License

@Override
public void channelWritabilityChanged(final ChannelHandlerContext ctx) throws Exception {
    if (!ctx.channel().isWritable()) {
        ctx.flush();/*from  ww w.j a v a  2  s.  c  om*/
    }
    ctx.fireChannelWritabilityChanged();
}

From source file:com.linecorp.armeria.internal.FlushConsolidationHandler.java

License:Apache License

@Override
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
    if (!ctx.channel().isWritable()) {
        // The writability of the channel changed to false, so flush all consolidated flushes now to free up memory.
        flushIfNeeded(ctx, false);/*from   www.jav a  2 s .c o m*/
    }
    ctx.fireChannelWritabilityChanged();
}

From source file:io.moquette.server.netty.NettyMQTTHandler.java

License:Open Source License

@Override
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
    if (ctx.channel().isWritable()) {
        m_processor.notifyChannelWritable(ctx.channel());
    }/*from www . j  ava 2s .  c o m*/
    ctx.fireChannelWritabilityChanged();
}

From source file:org.dcache.xrootd.stream.ChunkedResponseWriteHandler.java

License:Open Source License

@Override
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
    if (ctx.channel().isWritable()) {
        // channel is writable again try to continue flushing
        doFlush(ctx);/*from  w  ww . j av  a2 s .co  m*/
    }
    ctx.fireChannelWritabilityChanged();
}

From source file:org.jmqtt.broker.handler.NettyMQTTHandler.java

License:Open Source License

@Override
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
    if (ctx.channel().isWritable()) {
        processor.notifyChannelWritable(ctx.channel());
    }//from  www  . jav a  2 s .c  om
    ctx.fireChannelWritabilityChanged();
}

From source file:org.opendaylight.controller.netconf.nettyutil.handler.ssh.virtualsocket.ChannelInputStream.java

License:Open Source License

public void channelWritabilityChanged(ChannelHandlerContext ctx) {
    ctx.fireChannelWritabilityChanged();
}

From source file:org.opendaylight.controller.netconf.util.handler.ssh.virtualsocket.ChannelInputStream.java

License:Open Source License

public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
    ctx.fireChannelWritabilityChanged();
}

From source file:org.rzo.yajsw.nettyutils.ChannelGroupFilter.java

License:Apache License

@Override
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress,
        ChannelPromise promise) throws Exception {
    _channels.add(ctx.channel());/*from ww w  .ja  v  a 2 s .  c  om*/
    ctx.fireChannelWritabilityChanged();
}