Interface TimedBufferObserver
-
- All Known Implementing Classes:
AbstractSequentialFile.LocalBufferObserver
public interface TimedBufferObserver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckSync(boolean syncRequested, List<IOCallback> callbacks)voidflushBuffer(io.netty.buffer.ByteBuf buffer, boolean syncRequested, List<IOCallback> callbacks)It flushesByteBuf.readableBytes()ofbufferwithout changing its reader/writer indexes.
It just usebuffertemporary: it can be reused by the caller right after this call.intgetRemainingBytes()Return the number of remaining bytes that still fit on the observer (file)default booleansupportSync()
-
-
-
Method Detail
-
flushBuffer
void flushBuffer(io.netty.buffer.ByteBuf buffer, boolean syncRequested, List<IOCallback> callbacks)It flushesByteBuf.readableBytes()ofbufferwithout changing its reader/writer indexes.
It just usebuffertemporary: it can be reused by the caller right after this call.
-
checkSync
default void checkSync(boolean syncRequested, List<IOCallback> callbacks)
-
supportSync
default boolean supportSync()
-
getRemainingBytes
int getRemainingBytes()
Return the number of remaining bytes that still fit on the observer (file)
-
-