@Immutable public final class RaftPeerId extends Object
This is a value-based class.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static RaftPeerId |
getRaftPeerId(String id) |
org.apache.ratis.proto.RaftProtos.RaftPeerIdProto |
getRaftPeerIdProto() |
int |
hashCode() |
org.apache.ratis.thirdparty.com.google.protobuf.ByteString |
toByteString() |
String |
toString() |
static RaftPeerId |
valueOf(org.apache.ratis.thirdparty.com.google.protobuf.ByteString id) |
static RaftPeerId |
valueOf(String id) |
public static RaftPeerId valueOf(org.apache.ratis.thirdparty.com.google.protobuf.ByteString id)
public static RaftPeerId valueOf(String id)
public static RaftPeerId getRaftPeerId(String id)
public org.apache.ratis.proto.RaftProtos.RaftPeerIdProto getRaftPeerIdProto()
public org.apache.ratis.thirdparty.com.google.protobuf.ByteString toByteString()
ByteString
.Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.