Interface TimedBufferObserver

All Known Implementing Classes:
AbstractSequentialFile.LocalBufferObserver

public interface TimedBufferObserver
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    checkSync(boolean syncRequested, List<IOCallback> callbacks)
     
    void
    flushBuffer(io.netty.buffer.ByteBuf buffer, boolean syncRequested, List<IOCallback> callbacks)
    It flushes ByteBuf.readableBytes() of buffer without changing its reader/writer indexes.
    int
    Return the number of remaining bytes that still fit on the observer (file)
    default boolean
     
  • Method Details

    • 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)