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

pack-priv final Class BlockAllocatorProviders

extends Object
Class Inheritance

Utility implementations of BlockAllocatorProvider.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final BlockAllocatorProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BlockAllocatorProvider
basicProvider()

A BlockAllocatorProvider that does no caching of BlockAllocator or Block instances whatsoever.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASIC_PROVIDERback to summary
private static final BlockAllocatorProvider BASIC_PROVIDER

Constructor Detail

BlockAllocatorProvidersback to summary
private BlockAllocatorProviders()

Method Detail

basicProviderback to summary
public static BlockAllocatorProvider basicProvider()

A BlockAllocatorProvider that does no caching of BlockAllocator or Block instances whatsoever.

com.amazon.ion.impl.bin back to summary

private final Class BlockAllocatorProviders.BasicBlockAllocatorProvider

extends BlockAllocatorProvider
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Implements abstract com.amazon.ion.impl.bin.BlockAllocatorProvider.vendAllocator.

Returns a BlockAllocator that vends blocks of the given size.

Constructor Detail

BasicBlockAllocatorProviderback to summary
private BasicBlockAllocatorProvider()

Method Detail

vendAllocatorback to summary
public BlockAllocator vendAllocator(final int blockSize)

Implements abstract com.amazon.ion.impl.bin.BlockAllocatorProvider.vendAllocator.

Doc from com.amazon.ion.impl.bin.BlockAllocatorProvider.vendAllocator.

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.

Annotations
@Override