public class QueueControlDataFile extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INTEGER_SIZE_IN_BYTES |
Constructor and Description |
---|
QueueControlDataFile(QueueFileProvider queueFileProvider,
File firstFile,
File secondFile)
Creates a QueueControlDataFile for storing / retrieving information
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete()
Deletes the underlying file.
|
File |
getCurrentReadFile() |
File |
getCurrentWriteFile() |
void |
writeControlData(File writeFile,
File readFile)
Updates the control data
|
public static final int INTEGER_SIZE_IN_BYTES
public QueueControlDataFile(QueueFileProvider queueFileProvider, File firstFile, File secondFile)
queueFileProvider
- file provider to use to store control datafirstFile
- first queue file. Used for write and read in case there is no control data yet.secondFile
- second queue file.public void writeControlData(File writeFile, File readFile)
writeFile
- file that is used for writingreadFile
- file that is used for readingpublic File getCurrentReadFile()
public File getCurrentWriteFile()
public void close()
public void delete()
close()
has been executed on this
instanceCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.