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(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, size
public void open(String fileName, boolean readOnly, char[] encryptionKey)
FileStore
public ByteBuffer readFully(long pos, int len)
FileStore
public void free(long pos, int length)
FileStore
public void writeFully(long pos, ByteBuffer src)
FileStore
writeFully
in class FileStore
pos
- the write positionsrc
- the source bufferpublic void truncate(long size)
FileStore
public void close()
FileStore
public void sync()
FileStore
public int getDefaultRetentionTime()
FileStore
getDefaultRetentionTime
in class FileStore
Copyright © 2020 JBoss by Red Hat. All rights reserved.