|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.BinDecorator
com.db4o.io.ThreadedSyncBin
public class ThreadedSyncBin
Constructor Summary | |
---|---|
ThreadedSyncBin(Bin bin)
|
Method Summary | |
---|---|
void |
close()
closes the BinDecorator and the underlying Bin . |
long |
length()
returns the length of the Bin (on disc, in memory). |
int |
read(long position,
byte[] buffer,
int bytesToRead)
reads a given number of bytes into an array of bytes at an offset position. |
void |
sync()
flushes the buffer content to the physical storage media. |
void |
sync(java.lang.Runnable runnable)
runs the Runnable between two calls to sync(); |
void |
write(long position,
byte[] bytes,
int bytesToWrite)
writes a given number of bytes from an array of bytes at an offset position |
Methods inherited from class com.db4o.io.BinDecorator |
---|
syncRead |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadedSyncBin(Bin bin)
Method Detail |
---|
public void close()
BinDecorator
Bin
.
close
in interface Bin
close
in class BinDecorator
public long length()
Bin
length
in interface Bin
length
in class BinDecorator
Bin.length()
public int read(long position, byte[] buffer, int bytesToRead)
Bin
read
in interface Bin
read
in class BinDecorator
position
- the offset position to read atbuffer
- the byte array to read bytes intobytesToRead
- the number of bytes to be read
Bin.read(long, byte[], int)
public void write(long position, byte[] bytes, int bytesToWrite)
Bin
write
in interface Bin
write
in class BinDecorator
position
- the offset position to write atbytes
- the array of bytes to writebytesToWrite
- the number of bytes to writeBin.write(long, byte[], int)
public void sync()
Bin
sync
in interface Bin
sync
in class BinDecorator
Bin.sync()
public void sync(java.lang.Runnable runnable)
Bin
sync
in interface Bin
sync
in class BinDecorator
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |