Interface LogBufferPool

All Superinterfaces:
io.deephaven.base.pool.Pool<ByteBuffer>
All Known Implementing Classes:
DynamicLogBufferPoolImpl, LogBufferPoolImpl

public interface LogBufferPool extends io.deephaven.base.pool.Pool<ByteBuffer>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.deephaven.base.pool.Pool

    io.deephaven.base.pool.Pool.Factory, io.deephaven.base.pool.Pool.MultiGiver<T extends Object>, io.deephaven.base.pool.Pool.MultiPool<T extends Object>, io.deephaven.base.pool.Pool.MultiTaker<T extends Object>, io.deephaven.base.pool.Pool.SinglePool<T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    of(int bufferCount, int bufferSize)
    Creates a log buffer pool with at least bufferCount items.
    ofStrict(int bufferCount, int bufferSize)
    Creates a log buffer pool with at least bufferCount items.
    take(int minSize)
     

    Methods inherited from interface io.deephaven.base.pool.Pool

    give, take
  • 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)