protected class AbstractSequentialFile.LocalBufferObserver extends Object implements TimedBufferObserver
| Modifier | Constructor and Description |
|---|---|
protected |
LocalBufferObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
flushBuffer(io.netty.buffer.ByteBuf byteBuf,
boolean requestedSync,
List<IOCallback> callbacks)
It flushes
ByteBuf.readableBytes() of buffer without changing its reader/writer indexes.It just use buffer temporary: it can be reused by the caller right after this call. |
int |
getRemainingBytes()
Return the number of remaining bytes that still fit on the observer (file)
|
String |
toString() |
public void flushBuffer(io.netty.buffer.ByteBuf byteBuf,
boolean requestedSync,
List<IOCallback> callbacks)
TimedBufferObserverByteBuf.readableBytes() of buffer without changing its reader/writer indexes.buffer temporary: it can be reused by the caller right after this call.flushBuffer in interface TimedBufferObserverpublic int getRemainingBytes()
TimedBufferObservergetRemainingBytes in interface TimedBufferObserverCopyright © 2019 The Apache Software Foundation. All Rights Reserved.