RecyclingIntBlockAllocator

constructor(blockSize: Int, maxBufferedBlocks: Int, bytesUsed: Counter)

Creates a new RecyclingIntBlockAllocator

Parameters

blockSize

the block size in bytes

maxBufferedBlocks

maximum number of buffered int block

bytesUsed

Counter reference counting internally allocated bytes


constructor(blockSize: Int, maxBufferedBlocks: Int)

Creates a new RecyclingIntBlockAllocator.

Parameters

blockSize

the size of each block returned by this allocator

maxBufferedBlocks

maximum number of buffered int blocks


constructor()

Creates a new RecyclingIntBlockAllocator with a block size of , upper buffered docs limit of (DEFAULT_BUFFERED_BLOCKS).