Package edu.emory.mathcs.util.allocator

Abstraction and several implementations of a memory manager; useful for I/O processing when direct buffer management is required.

See:
          Description

Interface Summary
Allocator Abstraction of memory manager.
 

Class Summary
Allocator.Buffer Represents the data buffer returned to the application as a result of allocate() request.
DirectAllocator Implementation of the Allocator interface which allocates fresh data array at each request and has no memory usage control.
PoolingAllocator Implements the Allocator using memory buffer pool.
 

Package edu.emory.mathcs.util.allocator Description

Abstraction and several implementations of a memory manager; useful for I/O processing when direct buffer management is required. For instance, using allocators it is possible to control maximum memory usage by I/O buffers and to perform blocking allocation instead of throwing OutOfMemoryError. Example application is in BufferedPipe, where it is possible to set limits on memory usage of the in-proc pipes.