public class Replica
extends java.lang.Object
| Constructor and Description |
|---|
Replica(long workerId) |
Replica(long workerId,
ReplicaState state,
long replicaStateTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
static Replica |
fromProtobuf(ReplicaInfo info) |
ReplicaRole |
getRole() |
ReplicaState |
getState() |
long |
getWorkerId() |
void |
setReplicaState(ReplicaState state) |
void |
setRole(ReplicaRole role) |
boolean |
stateTimedOut(long timeoutMs) |
ReplicaInfo |
toProtobuf() |
public Replica(long workerId)
public Replica(long workerId,
ReplicaState state,
long replicaStateTimestamp)
public ReplicaRole getRole()
public void setRole(ReplicaRole role)
public long getWorkerId()
public ReplicaState getState()
public void setReplicaState(ReplicaState state)
public boolean stateTimedOut(long timeoutMs)
public ReplicaInfo toProtobuf()
public static Replica fromProtobuf(ReplicaInfo info)
Copyright © 2024. All rights reserved.