Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
| Package | Description |
|---|---|
| com.aoindustries.io | |
| com.aoindustries.util.persistent |
| Modifier and Type | Method and Description |
|---|---|
void |
AoByteArrayInputStream.fillFrom(PersistentBuffer pbuffer,
long position,
int len) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPersistentBuffer
Provides a base implementation of
PersistentBuffer in terms of
basic read/write methods. |
class |
LargeMappedPersistentBuffer
Uses a set of
MappedByteBuffer for persistence. |
class |
MappedPersistentBuffer
Uses
MappedByteBuffer for persistence. |
class |
RandomAccessFileBuffer
Uses
RandomAccessFile for persistence. |
class |
TwoCopyBarrierBuffer
Java does not support write barriers without a complete
force 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 on barrier(false)
and immediately on barrier(true) (if protectionLevel is high enough). |
| Modifier and Type | Field and Description |
|---|---|
protected PersistentBuffer |
AbstractPersistentBlockBuffer.pbuffer |
| Modifier and Type | Method and Description |
|---|---|
static PersistentBuffer |
PersistentCollections.getPersistentBuffer(long maximumCapacity)
Selects the most efficient temporary
PersistentBuffer for the current
machine and the provided maximum buffer size. |
static PersistentBuffer |
PersistentCollections.getPersistentBuffer(RandomAccessFile raf,
ProtectionLevel protectionLevel,
long maximumCapacity)
Selects the most efficient
PersistentBuffer for the current
machine and the provided maximum buffer size. |
| Modifier and Type | Method and Description |
|---|---|
static PersistentBlockBuffer |
PersistentCollections.getPersistentBlockBuffer(Serializer<?> serializer,
PersistentBuffer pbuffer,
long additionalBlockSpace)
Gets the most efficient
PersistentBlockBuffer for the provided
provided Serializer. |
| Constructor and Description |
|---|
AbstractPersistentBlockBuffer(PersistentBuffer pbuffer) |
DynamicPersistentBlockBuffer(PersistentBuffer pbuffer)
Creates a buffer.
|
FixedPersistentBlockBuffer(PersistentBuffer pbuffer,
long blockSize)
Creates a persistent buffer with the provided block size.
|
PersistentLinkedList(PersistentBuffer pbuffer,
Class<E> type)
Constructs a list backed by the provided persistent buffer using the most efficient serialization
for the provided type.
|
PersistentLinkedList(PersistentBuffer pbuffer,
Serializer<E> serializer)
Constructs a list backed by the provided persistent buffer.
|
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.