@Test public void closeCombinedWithFullSink() { writeKnownLength(framer, new byte[]{3, 14, 1, 5, 9, 2, 6}); verifyNoMoreInteractions(sink); framer.close(); verify(sink).deliverFrame( toWriteBuffer(new byte[] {0, 0, 0, 0, 7, 3, 14, 1, 5, 9, 2, 6}), true, true, 1); verifyNoMoreInteractions(sink); assertEquals(1, allocator.allocCount); checkStats(7, 7); }
@Override public void close() { if (!isClosed()) { closed = true; if (buffer != null && buffer.readableBytes() == 0) { releaseBuffer(); } commitToSink(true, true); } }
MessageFramer implements Framer { @Override public void close() { if (!isClosed()) { closed = true; if (buffer != null && buffer.readableBytes() == 0) { releaseBuffer(); } commitToSink(true, true); } } }
MessageFramer implements Framer { @Override public void close() { if (!isClosed()) { closed = true; if (buffer != null && buffer.readableBytes() == 0) { releaseBuffer(); } commitToSink(true, true); } } MessageFramer(
      Sink sink, WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx); }
MessageFramer implements Framer { @Override public void close() { if (!isClosed()) { closed = true; if (buffer != null && buffer.readableBytes() == 0) { releaseBuffer(); } commitToSink(true, true); } } MessageFramer(
      Sink sink, WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx); @Override MessageFramer setCompressor(Compressor compressor); @Override MessageFramer setMessageCompression(boolean enable); @Override void setMaxOutboundMessageSize(int maxSize); @Override void writePayload(InputStream message); @Override void flush(); @Override boolean isClosed(); @Override void close(); @Override void dispose(); }
MessageFramer implements Framer { @Override public void close() { if (!isClosed()) { closed = true; if (buffer != null && buffer.readableBytes() == 0) { releaseBuffer(); } commitToSink(true, true); } } MessageFramer(
      Sink sink, WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx); @Override MessageFramer setCompressor(Compressor compressor); @Override MessageFramer setMessageCompression(boolean enable); @Override void setMaxOutboundMessageSize(int maxSize); @Override void writePayload(InputStream message); @Override void flush(); @Override boolean isClosed(); @Override void close(); @Override void dispose();  }