use of com.palantir.atlasdb.keyvalue.api.ClusterAvailabilityStatus in project atlasdb by palantir.
the class DualWriteKeyValueService method getClusterAvailabilityStatus.
@Override
public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
ClusterAvailabilityStatus clusterAvailabilityStatus1 = delegate1.getClusterAvailabilityStatus();
ClusterAvailabilityStatus clusterAvailabilityStatus2 = delegate2.getClusterAvailabilityStatus();
if (clusterAvailabilityStatus1.compareTo(clusterAvailabilityStatus2) < 0) {
return clusterAvailabilityStatus1;
}
return clusterAvailabilityStatus2;
}
Aggregations