Search in sources :

Example 1 with ClusterAvailabilityStatus

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;
}
Also used : ClusterAvailabilityStatus(com.palantir.atlasdb.keyvalue.api.ClusterAvailabilityStatus)

Aggregations

ClusterAvailabilityStatus (com.palantir.atlasdb.keyvalue.api.ClusterAvailabilityStatus)1