|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Private public interface IOEngine
A class implementing IOEngine interface could support data services for
BucketCache.
| Method Summary | |
|---|---|
boolean |
isPersistent()
|
void |
read(ByteBuffer dstBuffer,
long offset)
Transfers data from IOEngine to the given byte buffer |
void |
shutdown()
Shutdown the IOEngine |
void |
sync()
Sync the data to IOEngine after writing |
void |
write(ByteBuffer srcBuffer,
long offset)
Transfers data from the given byte buffer to IOEngine |
| Method Detail |
|---|
boolean isPersistent()
void read(ByteBuffer dstBuffer,
long offset)
throws IOException
dstBuffer - the given byte buffer into which bytes are to be writtenoffset - The offset in the IO engine where the first byte to be read
IOException
void write(ByteBuffer srcBuffer,
long offset)
throws IOException
srcBuffer - the given byte buffer from which bytes are to be readoffset - The offset in the IO engine where the first byte to be
written
IOException
void sync()
throws IOException
IOExceptionvoid shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||