/** * Creates a new {@link RecyclingIntBlockAllocator} with a block size of {@link * IntBlockPool#INT_BLOCK_SIZE}, upper buffered docs limit of {@link #DEFAULT_BUFFERED_BLOCKS} * ({@value #DEFAULT_BUFFERED_BLOCKS}). */ public RecyclingIntBlockAllocator() { this(IntBlockPool.INT_BLOCK_SIZE, 64, Counter.newCounter(false)); }
/** * Creates a new {@link RecyclingIntBlockAllocator}. * * @param blockSize the size of each block returned by this allocator * @param maxBufferedBlocks maximum number of buffered int blocks */ public RecyclingIntBlockAllocator(int blockSize, int maxBufferedBlocks) { this(blockSize, maxBufferedBlocks, Counter.newCounter(false)); }