public interface SequentialFile
| Modifier and Type | Method and Description |
|---|---|
int |
calculateBlockStart(int position) |
SequentialFile |
cloneFile() |
void |
close() |
void |
copyTo(SequentialFile newFileName) |
void |
delete() |
boolean |
exists() |
void |
fill(int position,
int size,
byte fillCharacter) |
boolean |
fits(int size) |
int |
getAlignment() |
String |
getFileName() |
boolean |
isOpen() |
void |
open() |
void |
open(int maxIO,
boolean useExecutor)
The maximum number of simultaneous writes accepted
|
long |
position() |
void |
position(long pos) |
int |
read(ByteBuffer bytes) |
int |
read(ByteBuffer bytes,
IOAsyncTask callback) |
void |
renameTo(String newFileName) |
void |
setTimedBuffer(TimedBuffer buffer) |
long |
size() |
void |
sync() |
void |
waitForClose() |
void |
write(EncodingSupport bytes,
boolean sync) |
void |
write(EncodingSupport bytes,
boolean sync,
IOAsyncTask callback) |
void |
write(HornetQBuffer bytes,
boolean sync) |
void |
write(HornetQBuffer bytes,
boolean sync,
IOAsyncTask callback) |
void |
writeDirect(ByteBuffer bytes,
boolean sync)
Write directly to the file without using any buffer
|
void |
writeDirect(ByteBuffer bytes,
boolean sync,
IOAsyncTask callback)
Write directly to the file without using any buffer
|
void |
writeInternal(ByteBuffer bytes)
Write directly to the file.
|
boolean isOpen()
boolean exists()
void open(int maxIO,
boolean useExecutor)
throws Exception
maxIO - Exceptionboolean fits(int size)
String getFileName()
void write(HornetQBuffer bytes, boolean sync, IOAsyncTask callback) throws Exception
Exceptionvoid write(HornetQBuffer bytes, boolean sync) throws Exception
Exceptionvoid write(EncodingSupport bytes, boolean sync, IOAsyncTask callback) throws Exception
Exceptionvoid write(EncodingSupport bytes, boolean sync) throws Exception
Exceptionvoid writeDirect(ByteBuffer bytes, boolean sync, IOAsyncTask callback)
void writeDirect(ByteBuffer bytes, boolean sync) throws Exception
Exceptionvoid writeInternal(ByteBuffer bytes) throws Exception
Exceptionint read(ByteBuffer bytes, IOAsyncTask callback) throws Exception
Exceptionint read(ByteBuffer bytes) throws Exception
ExceptionSequentialFile cloneFile()
void copyTo(SequentialFile newFileName) throws Exception
Exceptionvoid setTimedBuffer(TimedBuffer buffer)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.