in server/src/main/java/org/apache/cassandra/sidecar/cluster/ConsistencyVerifiers.java [65:86]
public static ConsistencyVerifier forConsistencyLevel(ConsistencyLevel consistencyLevel, @Nullable String localDatacenter)
{
switch (consistencyLevel)
{
case ONE:
return ForOne.INSTANCE;
case TWO:
return ForTwo.INSTANCE;
case QUORUM:
return ForQuorum.INSTANCE;
case ALL:
return ForAll.INSTANCE;
case EACH_QUORUM:
return ForEachQuorum.INSTANCE;
case LOCAL_ONE:
return new ForLocalOne(localDatacenter);
case LOCAL_QUORUM:
return new ForLocalQuorum(localDatacenter);
default:
throw new IllegalStateException("Encountered unknown consistency level: " + consistencyLevel);
}
}