public class SegmentedRaftLogOutputStream extends Object implements Closeable
| Constructor and Description |
|---|
SegmentedRaftLogOutputStream(File file,
boolean append,
long segmentMaxSize,
long preallocatedSize,
ByteBuffer byteBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flush data to persistent store.
|
String |
toString() |
void |
write(org.apache.ratis.proto.RaftProtos.LogEntryProto entry)
Write the given entry to this output stream.
|
public SegmentedRaftLogOutputStream(File file, boolean append, long segmentMaxSize, long preallocatedSize, ByteBuffer byteBuffer) throws IOException
IOExceptionpublic void write(org.apache.ratis.proto.RaftProtos.LogEntryProto entry) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void flush()
throws IOException
IOExceptionCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.