Uses of Interface
com.aoapps.persistence.PersistentBuffer
-
Uses of PersistentBuffer in com.aoapps.persistence
Classes in com.aoapps.persistence that implement PersistentBufferModifier and TypeClassDescriptionclass
Provides a base implementation ofPersistentBuffer
in terms of basic read/write methods.class
Uses a set ofMappedByteBuffer
for persistence.class
UsesMappedByteBuffer
for persistence.class
UsesRandomAccessFile
for persistence.class
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).Fields in com.aoapps.persistence declared as PersistentBufferModifier and TypeFieldDescriptionprotected final PersistentBuffer
AbstractPersistentBlockBuffer.pbuffer
Methods in com.aoapps.persistence that return PersistentBufferModifier and TypeMethodDescriptionstatic PersistentBuffer
PersistentCollections.getPersistentBuffer
(long maximumCapacity) Selects the most efficient temporaryPersistentBuffer
for the current machine and the provided maximum buffer size.static PersistentBuffer
PersistentCollections.getPersistentBuffer
(RandomAccessFile raf, ProtectionLevel protectionLevel, long maximumCapacity) Selects the most efficientPersistentBuffer
for the current machine and the provided maximum buffer size.Methods in com.aoapps.persistence with parameters of type PersistentBufferModifier and TypeMethodDescriptionstatic PersistentBlockBuffer
PersistentCollections.getPersistentBlockBuffer
(Serializer<?> serializer, PersistentBuffer pbuffer, long additionalBlockSpace) Gets the most efficientPersistentBlockBuffer
for the provided providedSerializer
.Constructors in com.aoapps.persistence with parameters of type PersistentBufferModifierConstructorDescriptionprotected
Creates a buffer.FixedPersistentBlockBuffer
(PersistentBuffer pbuffer, long blockSize) Creates a persistent buffer with the provided block size.PersistentLinkedList
(PersistentBuffer pbuffer, Serializer<E> serializer) Constructs a list backed by the provided persistent buffer.PersistentLinkedList
(PersistentBuffer pbuffer, Class<E> type) Constructs a list backed by the provided persistent buffer using the most efficient serialization for the provided type.