Uses of Interface
com.aoapps.persistence.PersistentBuffer
-
Uses of PersistentBuffer in com.aoapps.persistence
Modifier 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).Modifier and TypeFieldDescriptionprotected final PersistentBuffer
AbstractPersistentBlockBuffer.pbuffer
Modifier 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.Modifier and TypeMethodDescriptionstatic PersistentBlockBuffer
PersistentCollections.getPersistentBlockBuffer
(Serializer<?> serializer, PersistentBuffer pbuffer, long additionalBlockSpace) Gets the most efficientPersistentBlockBuffer
for the provided providedSerializer
.ModifierConstructorDescriptionprotected
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.