Class MappedPersistentBuffer

java.lang.Object
com.aoapps.persistence.AbstractPersistentBuffer
com.aoapps.persistence.MappedPersistentBuffer
All Implemented Interfaces:
PersistentBuffer, Closeable, AutoCloseable

public class MappedPersistentBuffer extends AbstractPersistentBuffer
Uses MappedByteBuffer for persistence. It maps the entire file at once into a single buffer. For this reason, it is limited to a maximum buffer size of 2^31-1. To use memory mapping for larger buffers, at a slight performance cost, use LargeMappedPersistentBuffer.
Author:
AO Industries, Inc.
See Also: