public class JRConcurrentSwapFile extends JRSwapFile
JRSwapFile derived class that uses
a FileChannel to perform concurrent I/O on the
swap file.JRSwapFile.LongQueue, JRSwapFile.SwapHandlefile, PROPERTY_DELETE_ON_EXIT| Constructor and Description |
|---|
JRConcurrentSwapFile(String directory,
int blockSize,
int minGrowCount)
Creates a swap file.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
read(byte[] data,
int dataOffset,
int dataLength,
long fileOffset) |
protected void |
write(byte[] data,
int dataSize,
int dataOffset,
long fileOffset) |
dispose, finalize, free, freeBlocks, read, reserveFreeBlocks, writepublic JRConcurrentSwapFile(String directory, int blockSize, int minGrowCount)
directory - the directory where the file should be created.blockSize - the size of the blocks allocated by the swap fileminGrowCount - the minimum number of blocks by which the swap file grows when fullprotected void write(byte[] data,
int dataSize,
int dataOffset,
long fileOffset)
throws IOException
write in class JRSwapFileIOExceptionprotected void read(byte[] data,
int dataOffset,
int dataLength,
long fileOffset)
throws IOException
read in class JRSwapFileIOExceptionCopyright © 2012. All Rights Reserved.