public class OffHeapStore extends FileStore
encryptedFile, file, fileLock, fileName, fileSize, freeSpace, readBytes, readCount, readOnly, writeBytes, writeCount| 构造器和说明 |
|---|
OffHeapStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
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(String fileName,
boolean readOnly,
char[] encryptionKey)
Try to open the file.
|
ByteBuffer |
readFully(long pos,
int len)
Read from the file.
|
void |
sync()
Flush all changes.
|
String |
toString() |
void |
truncate(long size)
Truncate the file.
|
void |
writeFully(long pos,
ByteBuffer src)
Write to the file.
|
allocate, clear, getEncryptedFile, getFile, getFileName, getFillRate, getReadBytes, getReadCount, getWriteBytes, getWriteCount, isReadOnly, markUsed, sizepublic void open(String fileName, boolean readOnly, char[] encryptionKey)
FileStorepublic ByteBuffer readFully(long pos, int len)
FileStorepublic void free(long pos,
int length)
FileStorepublic void writeFully(long pos,
ByteBuffer src)
FileStorewriteFully 在类中 FileStorepos - the write positionsrc - the source bufferpublic void truncate(long size)
FileStorepublic int getDefaultRetentionTime()
FileStoregetDefaultRetentionTime 在类中 FileStoreCopyright © 2017. All rights reserved.