public interface ActiveChunk
extends com.hazelcast.nio.Disposable
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStep1(long recordSeq,
long keyPrefix,
byte[] keyBytes,
byte[] valueBytes)
Writes a record to the chunk file and updates the
size property on this object. |
void |
close() |
void |
flagForFsyncOnClose(boolean needsFsync)
As soon as a record which "needs fsync" is added to the chunk, it must not be closed
without fsync-ing it first.
|
void |
fsync()
Performs the
fsync operation on the open chunk file. |
long |
size() |
StableChunk |
toStableChunk()
Converts this active chunk into a stable chunk.
|
boolean addStep1(long recordSeq,
long keyPrefix,
byte[] keyBytes,
byte[] valueBytes)
size property on this object.
May be called on the mutator thread.true if the chunk is now full.long size()
void flagForFsyncOnClose(boolean needsFsync)
true signals that need.needsFsync - true if the chunk will need an fsync before closing.void fsync()
fsync operation on the open chunk file.void close()
StableChunk toStableChunk()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.