Class ByteBufferQueue


  • public class ByteBufferQueue
    extends java.lang.Object
    • Constructor Detail

      • ByteBufferQueue

        public ByteBufferQueue​(long maxSizeBytes,
                               ByteBufferFactory bufferFactory)
    • Method Detail

      • offer

        public boolean offer​(long batchId,
                             int itemsCount,
                             int claimBytes,
                             java.util.function.Consumer<java.nio.ByteBuffer> write)
      • returnBuffer

        public void returnBuffer​(BinaryBatch batch)
      • getSizeBytes

        public long getSizeBytes()