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)
TimedBufferObserver
ByteBuf.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 TimedBufferObserver
public int getRemainingBytes()
TimedBufferObserver
getRemainingBytes
in interface TimedBufferObserver
Copyright © 2019 JBoss by Red Hat. All rights reserved.