public class OffHeapStore extends FileStore
encryptedFile, file, fileLock, fileName, fileSize, freeSpace, readBytes, readCount, readOnly, writeBytes, writeCount| Constructor and Description |
|---|
OffHeapStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this store.
|
void |
free(long pos,
int length)
Mark the space as free.
|
int |
getDefaultRetentionTime()
Get the default retention time for this store in milliseconds.
|
void |
open(java.lang.String fileName,
boolean readOnly,
char[] encryptionKey)
Try to open the file.
|
java.nio.ByteBuffer |
readFully(long pos,
int len)
Read from the file.
|
void |
sync()
Flush all changes.
|
java.lang.String |
toString() |
void |
truncate(long size)
Truncate the file.
|
void |
writeFully(long pos,
java.nio.ByteBuffer src)
Write to the file.
|
allocate, clear, getEncryptedFile, getFile, getFileName, getFillRate, getReadBytes, getReadCount, getWriteBytes, getWriteCount, isReadOnly, markUsed, sizepublic void open(java.lang.String fileName,
boolean readOnly,
char[] encryptionKey)
FileStorepublic java.nio.ByteBuffer readFully(long pos,
int len)
FileStorepublic void free(long pos,
int length)
FileStorepublic void writeFully(long pos,
java.nio.ByteBuffer src)
FileStorewriteFully in class FileStorepos - the write positionsrc - the source bufferpublic void truncate(long size)
FileStorepublic void close()
FileStorepublic void sync()
FileStorepublic int getDefaultRetentionTime()
FileStoregetDefaultRetentionTime in class FileStore