Uses of Interface
com.aoapps.persistence.PersistentBuffer
-
Uses of PersistentBuffer in com.aoapps.persistence
Classes in com.aoapps.persistence that implement PersistentBufferModifier and TypeClassDescriptionclassProvides a base implementation ofPersistentBufferin terms of basic read/write methods.classUses a set ofMappedByteBufferfor persistence.classUsesMappedByteBufferfor persistence.classUsesRandomAccessFilefor persistence.classJava does not support write barriers without a completeforcecall, 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 PersistentBufferAbstractPersistentBlockBuffer.pbufferMethods in com.aoapps.persistence that return PersistentBufferModifier and TypeMethodDescriptionstatic PersistentBufferPersistentCollections.getPersistentBuffer(long maximumCapacity) Selects the most efficient temporaryPersistentBufferfor the current machine and the provided maximum buffer size.static PersistentBufferPersistentCollections.getPersistentBuffer(RandomAccessFile raf, ProtectionLevel protectionLevel, long maximumCapacity) Selects the most efficientPersistentBufferfor the current machine and the provided maximum buffer size.Methods in com.aoapps.persistence with parameters of type PersistentBufferModifier and TypeMethodDescriptionstatic PersistentBlockBufferPersistentCollections.getPersistentBlockBuffer(Serializer<?> serializer, PersistentBuffer pbuffer, long additionalBlockSpace) Gets the most efficientPersistentBlockBufferfor the provided providedSerializer.Constructors in com.aoapps.persistence with parameters of type PersistentBufferModifierConstructorDescriptionprotectedCreates 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.
