Top Description Constructors Methods
com.amazon.ion.impl.bin

pack-priv abstract Class BlockAllocatorProvider

extends Object
Class Inheritance
Known Direct Subclasses
com.amazon.ion.impl.bin.BlockAllocatorProviders.BasicBlockAllocatorProvider, com.amazon.ion.impl.bin.PooledBlockAllocatorProvider

Constructs BlockAllocator instances. Such instances returned by vendAllocator(int) should not be shared across threads and must be closed when no longer needed to re-use or clean up any underlying resources.

Implementations must be thread-safe.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public abstract BlockAllocator
vendAllocator(int blockSize)

Returns a BlockAllocator that vends blocks of the given size.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BlockAllocatorProviderback to summary
pack-priv BlockAllocatorProvider()

Method Detail

vendAllocatorback to summary
public abstract BlockAllocator vendAllocator(int blockSize)

Returns a BlockAllocator that vends blocks of the given size. This method can be used across threads, but the returned BlockAllocator instances are not thread-safe and must have their BlockAllocator#close() method called to allow its underlying resources to be released or reused properly.