public class SegmentedRaftLogOutputStream extends Object implements Closeable
| 构造器和说明 |
|---|
SegmentedRaftLogOutputStream(File file,
boolean append,
long segmentMaxSize,
long preallocatedSize,
ByteBuffer byteBuffer) |
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 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic void flush()
throws IOException
IOExceptionCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.