/** * @see #hasOutputChanged(ChannelHandlerContext, boolean) */ private void initOutputChanged(ChannelHandlerContext ctx) { if (observeOutput) { Channel channel = ctx.channel(); Unsafe unsafe = channel.unsafe(); ChannelOutboundBuffer buf = unsafe.outboundBuffer(); if (buf != null) { lastMessageHashCode = System.identityHashCode(buf.current()); lastPendingWriteBytes = buf.totalPendingWriteBytes(); } } }
/** * @see #hasOutputChanged(ChannelHandlerContext, boolean) */ private void initOutputChanged(ChannelHandlerContext ctx) { if (observeOutput) { Channel channel = ctx.channel(); Unsafe unsafe = channel.unsafe(); ChannelOutboundBuffer buf = unsafe.outboundBuffer(); if (buf != null) { lastMessageHashCode = System.identityHashCode(buf.current()); lastPendingWriteBytes = buf.totalPendingWriteBytes(); } } }
long pendingWriteBytes = buf.totalPendingWriteBytes();
long pendingWriteBytes = buf.totalPendingWriteBytes();
/** * @see #hasOutputChanged(ChannelHandlerContext, boolean) */ private void initOutputChanged(ChannelHandlerContext ctx) { if (observeOutput) { Channel channel = ctx.channel(); Unsafe unsafe = channel.unsafe(); ChannelOutboundBuffer buf = unsafe.outboundBuffer(); if (buf != null) { lastMessageHashCode = System.identityHashCode(buf.current()); lastPendingWriteBytes = buf.totalPendingWriteBytes(); } } }
long pendingWriteBytes = buf.totalPendingWriteBytes();
private boolean hasPendingWriteBytes() { // On close the outboundBuffer is made null. After that point // adding messages and flushes to outboundBuffer is not allowed. ChannelOutboundBuffer outBuffer = this.unsafe.outboundBuffer(); return outBuffer != null && outBuffer.totalPendingWriteBytes() > 0; }
private boolean hasPendingWriteBytes() { // On close the outboundBuffer is made null. After that point // adding messages and flushes to outboundBuffer is not allowed. ChannelOutboundBuffer outBuffer = this.unsafe.outboundBuffer(); return outBuffer != null && outBuffer.totalPendingWriteBytes() > 0; }
private boolean hasPendingWriteBytes() { // On close the outboundBuffer is made null. After that point // adding messages and flushes to outboundBuffer is not allowed. ChannelOutboundBuffer outBuffer = this.unsafe.outboundBuffer(); return outBuffer != null && outBuffer.totalPendingWriteBytes() > 0; }
/** * @see #hasOutputChanged(ChannelHandlerContext, boolean) */ private void initOutputChanged(ChannelHandlerContext ctx) { if (observeOutput) { Channel channel = ctx.channel(); Unsafe unsafe = channel.unsafe(); ChannelOutboundBuffer buf = unsafe.outboundBuffer(); if (buf != null) { lastMessageHashCode = System.identityHashCode(buf.current()); lastPendingWriteBytes = buf.totalPendingWriteBytes(); } } }
/** * @see #hasOutputChanged(ChannelHandlerContext, boolean) */ private void initOutputChanged(ChannelHandlerContext ctx) { if (observeOutput) { Channel channel = ctx.channel(); Unsafe unsafe = channel.unsafe(); ChannelOutboundBuffer buf = unsafe.outboundBuffer(); if (buf != null) { lastMessageHashCode = System.identityHashCode(buf.current()); lastPendingWriteBytes = buf.totalPendingWriteBytes(); } } }
/** * @see #hasOutputChanged(ChannelHandlerContext, boolean) */ private void initOutputChanged(ChannelHandlerContext ctx) { if (observeOutput) { Channel channel = ctx.channel(); Unsafe unsafe = channel.unsafe(); ChannelOutboundBuffer buf = unsafe.outboundBuffer(); if (buf != null) { lastMessageHashCode = System.identityHashCode(buf.current()); lastPendingWriteBytes = buf.totalPendingWriteBytes(); } } }
long pendingWriteBytes = buf.totalPendingWriteBytes();
long pendingWriteBytes = buf.totalPendingWriteBytes();
long pendingWriteBytes = buf.totalPendingWriteBytes();