Interface LogBufferPool

All Superinterfaces:
Pool<ByteBuffer>
All Known Implementing Classes:
DynamicLogBufferPoolImpl, LogBufferPoolImpl

public interface LogBufferPool extends Pool<ByteBuffer>
  • Method Details

    • of

      static LogBufferPool of(int bufferCount, int bufferSize)
      Creates a log buffer pool with at least bufferCount items. If all of the buffers are in use, additional buffers will be created on-demand.
      Parameters:
      bufferCount - the buffer count
      bufferSize - the buffer size
      Returns:
      the log buffer pool
    • ofStrict

      static LogBufferPool ofStrict(int bufferCount, int bufferSize)
      Creates a log buffer pool with at least bufferCount items. If all of the buffers are in use, additional takes will spin or block until one becomes available.
      Parameters:
      bufferCount - the buffer count
      bufferSize - the buffer size
      Returns:
      the log buffer pool
    • take

      ByteBuffer take(int minSize)