Package io.deephaven.io.log
Interface LogBufferPool
- All Superinterfaces:
Pool<ByteBuffer>
- All Known Implementing Classes:
DynamicLogBufferPoolImpl,LogBufferPoolImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.base.pool.Pool
Pool.Factory, Pool.MultiGiver<T>, Pool.MultiPool<T>, Pool.MultiTaker<T>, Pool.SinglePool<T> -
Method Summary
Modifier and TypeMethodDescriptionstatic LogBufferPoolof(int bufferCount, int bufferSize) Creates a log buffer pool with at leastbufferCountitems.static LogBufferPoolofStrict(int bufferCount, int bufferSize) Creates a log buffer pool with at leastbufferCountitems.take(int minSize)
-
Method Details
-
of
Creates a log buffer pool with at leastbufferCountitems. If all of the buffers are in use, additional buffers will be created on-demand.- Parameters:
bufferCount- the buffer countbufferSize- the buffer size- Returns:
- the log buffer pool
-
ofStrict
Creates a log buffer pool with at leastbufferCountitems. If all of the buffers are in use, additional takes will spin or block until one becomes available.- Parameters:
bufferCount- the buffer countbufferSize- the buffer size- Returns:
- the log buffer pool
-
take
-