Interface TimedBufferObserver
- All Known Implementing Classes:
AbstractSequentialFile.LocalBufferObserver
public interface TimedBufferObserver
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.intReturn the number of remaining bytes that still fit on the observer (file)default boolean
-
Method Details
-
flushBuffer
It flushesByteBuf.readableBytes()ofbufferwithout changing its reader/writer indexes.It just use
buffertemporary: it can be reused by the caller right after this call. -
checkSync
-
supportSync
default boolean supportSync() -
getRemainingBytes
int getRemainingBytes()Return the number of remaining bytes that still fit on the observer (file)
-