Module com.aoapps.persistence
Package com.aoapps.persistence
package com.aoapps.persistence
-
ClassDescriptionBase class for any implementation that treats a
PersistentBuffer
as a set of allocatable blocks.Provides a base implementation ofPersistentBuffer
in terms of basic read/write methods.SerializesBoolean
objects.Serializes any objects by using a buffer between theSerializer.getSerializedSize(java.lang.Object)
andSerializer.serialize(java.lang.Object, java.io.OutputStream)
calls.Serializesbyte[]
objects.SerializesByte
objects.SerializesCharacter
objects.Serializeschar[]
objects.SerializesDouble
objects.Treats aPersistentBuffer
as a set of allocatable blocks.Treats aPersistentBuffer
as a set of allocatable blocks.SerializesFloat
objects.Wraps a serializer and compresses the data using GZIP.SerializesInteger
objects.Uses a set ofMappedByteBuffer
for persistence.SerializesLong
objects.UsesMappedByteBuffer
for persistence.Serializes anySerializable
objects.A persistent set of blocks of arbitrary data.A persistent buffer retains its data between uses.A set of static utility methods to help in the selection, creation, and management of persistent collections.Serializes and stores objects in a persistent buffer.The different protection levels offered.UsesRandomAccessFile
for persistence.Serializer<E>Writes and reads serialized forms of objects to and fromOutputStream
andInputStream
.SerializesShort
objects.Java does not support write barriers without a completeforce
call, this class works-around this issue by maintaining two copies of the file and updating the older copy to be the newer copy occasionally onbarrier(false)
and immediately onbarrier(true)
(if protectionLevel is high enough).