Interface TimedBufferObserver

    • Method Detail

      • flushBuffer

        void flushBuffer​(io.netty.buffer.ByteBuf buffer,
                         boolean syncRequested,
                         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.
      • 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)