/** * All data that has been written to the stream so far will be flushed. New * data can be still written to the stream while flushing is performed. */ @Override public void setReadyToFlush() throws IOException { doubleBuf.setReadyToFlush(); }
@Override public void setReadyToFlush() throws IOException { buf.setReadyToFlush(); }
@Override // EditLogOutputStream public void setReadyToFlush() throws IOException { doubleBuf.setReadyToFlush(); }
@Override public void setReadyToFlush() throws IOException { buf.setReadyToFlush(); }
@Override // EditLogOutputStream public void setReadyToFlush() throws IOException { doubleBuf.setReadyToFlush(); }
/** * All data that has been written to the stream so far will be flushed. New * data can be still written to the stream while flushing is performed. */ @Override public void setReadyToFlush() throws IOException { doubleBuf.setReadyToFlush(); }
/** * All data that has been written to the stream so far will be flushed. New * data can be still written to the stream while flushing is performed. */ @Override public void setReadyToFlush() throws IOException { doubleBuf.setReadyToFlush(); }
@Override public void setReadyToFlush() throws IOException { buf.setReadyToFlush(); }
@Override // EditLogOutputStream public void setReadyToFlush() throws IOException { doubleBuf.setReadyToFlush(); }
/** * All data that has been written to the stream so far will be flushed. New * data can be still written to the stream while flushing is performed. */ @Override public void setReadyToFlush() throws IOException { doubleBuf.getCurrentBuf().write(FSEditLogOpCodes.OP_INVALID.getOpCode()); // insert eof marker doubleBuf.setReadyToFlush(); }
buf.setReadyToFlush(); assertEquals("Swapping buffers should still count buffered bytes", data.length, buf.countBufferedBytes()); assertEquals("Should count new data correctly", data.length, buf.countBufferedBytes()); buf.setReadyToFlush(); buf.flushTo(outBuf);