public class FileDataWriter extends AbstractDataWriter
| Constructor and Description |
|---|
FileDataWriter(@NotNull java.io.File directory) |
FileDataWriter(@NotNull java.io.File directory,
@Nullable java.lang.String lockId) |
| 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
|
void |
syncDirectory() |
protected void |
syncImpl() |
void |
write(byte[] b,
int off,
int len) |
close, isOpen, openOrCreateBlock, syncpublic FileDataWriter(@NotNull
@NotNull java.io.File directory)
public FileDataWriter(@NotNull
@NotNull java.io.File directory,
@Nullable
@Nullable java.lang.String lockId)
public void write(byte[] b,
int off,
int len)
throws jetbrains.exodus.ExodusException
jetbrains.exodus.ExodusExceptionpublic 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 AbstractDataWriterpublic void syncDirectory()
syncDirectory in interface DataWritersyncDirectory in class AbstractDataWriter