@Test public void simplePayload() { writeKnownLength(framer, new byte[]{3, 14}); verifyNoMoreInteractions(sink); framer.flush(); verify(sink).deliverFrame(toWriteBuffer(new byte[] {0, 0, 0, 0, 2, 3, 14}), false, true, 1); assertEquals(1, allocator.allocCount); verifyNoMoreInteractions(sink); checkStats(2, 2); }
@Override public void flush() { if (buffer != null && buffer.readableBytes() > 0) { commitToSink(false, true); } }
MessageFramer implements Framer { @Override public void flush() { if (buffer != null && buffer.readableBytes() > 0) { commitToSink(false, true); } } }
MessageFramer implements Framer { @Override public void flush() { if (buffer != null && buffer.readableBytes() > 0) { commitToSink(false, true); } } MessageFramer(
      Sink sink, WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx); }
MessageFramer implements Framer { @Override public void flush() { if (buffer != null && buffer.readableBytes() > 0) { commitToSink(false, 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 flush() { if (buffer != null && buffer.readableBytes() > 0) { commitToSink(false, 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();  }