public interface FileWriteHandle
| Modifier and Type | Method and Description |
|---|---|
@Nullable WALPointer |
addRecord(WALRecord rec) |
void |
awaitNext()
Awaiting when next segment would be initialized.
|
boolean |
close(boolean rollOver)
Close segment.
|
void |
closeBuffer()
Close buffer.
|
void |
finishResumeLogging()
Do action after finish resume logging.
|
void |
flushAll()
Flush all records.
|
void |
fsync(WALPointer ptr)
Do fsync.
|
long |
getSegmentId() |
int |
getSwitchSegmentRecordOffset() |
boolean |
needFsync(WALPointer ptr) |
WALPointer |
position() |
int |
serializerVersion() |
void |
signalNextAvailable()
Signals next segment available to wake up other worker threads waiting for WAL to write.
|
void |
writeHeader()
Write header to segment.
|
int serializerVersion()
void finishResumeLogging()
void writeHeader()
throws IgniteCheckedException
IgniteCheckedException - if fail.@Nullable @Nullable WALPointer addRecord(WALRecord rec) throws StorageException, IgniteCheckedException
rec - Record to be added.StorageException - if storage was failed.IgniteCheckedException - if fail.void flushAll()
throws IgniteCheckedException
IgniteCheckedException - if fail.boolean needFsync(WALPointer ptr)
ptr - Pointer.true if fsync needed.WALPointer position()
void fsync(WALPointer ptr) throws StorageException, IgniteCheckedException
ptr - Pointer to which fsync required.StorageException - if storage fail.IgniteCheckedException - if fail.void closeBuffer()
boolean close(boolean rollOver)
throws IgniteCheckedException,
StorageException
rollOver - Close for rollover.true if close was success.IgniteCheckedException - if fail.StorageException - if storage was fail.void signalNextAvailable()
void awaitNext()
long getSegmentId()
int getSwitchSegmentRecordOffset()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021