public class MemoryDataWriter extends AbstractDataWriter
| Constructor and Description |
|---|
MemoryDataWriter(@NotNull Memory memory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeImpl() |
boolean |
lock(long timeout)
Try to lock writer during specified time.
|
java.lang.String |
lockInfo()
For debug purposes, returns detailed information about current lock owner.
|
protected void |
openOrCreateBlockImpl(long address,
long length) |
boolean |
release()
Releases writer
|
protected void |
syncImpl() |
void |
write(byte[] b,
int off,
int len) |
close, isOpen, openOrCreateBlock, sync, syncDirectorypublic MemoryDataWriter(@NotNull
@NotNull Memory memory)
public void write(byte[] b,
int off,
int len)
public boolean lock(long timeout)
DataWritertimeout - - if writer is already locked try to lock it during specified timeout.public boolean release()
DataWriterpublic java.lang.String lockInfo()
DataWriterprotected void syncImpl()
syncImpl in class AbstractDataWriterprotected void closeImpl()
closeImpl in class AbstractDataWriterprotected void openOrCreateBlockImpl(long address,
long length)
openOrCreateBlockImpl in class AbstractDataWriter