public interface TermIndex extends Comparable<TermIndex>
| 限定符和类型 | 字段和说明 |
|---|---|
static TermIndex[] |
EMPTY_ARRAY |
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
compareTo(TermIndex that) |
long |
getIndex() |
long |
getTerm() |
default org.apache.ratis.proto.RaftProtos.TermIndexProto |
toProto() |
static TermIndex |
valueOf(long term,
long index) |
static TermIndex |
valueOf(org.apache.ratis.proto.RaftProtos.LogEntryProto proto) |
static TermIndex |
valueOf(org.apache.ratis.proto.RaftProtos.TermIndexProto proto) |
static final TermIndex[] EMPTY_ARRAY
long getTerm()
long getIndex()
default org.apache.ratis.proto.RaftProtos.TermIndexProto toProto()
RaftProtos.TermIndexProto.default int compareTo(TermIndex that)
compareTo 在接口中 Comparable<TermIndex>static TermIndex valueOf(org.apache.ratis.proto.RaftProtos.TermIndexProto proto)
TermIndex object from the given proto.static TermIndex valueOf(org.apache.ratis.proto.RaftProtos.LogEntryProto proto)
TermIndex object from the given proto.Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.