@Test public void testConsistencyLevel() throws Exception { statement.setConsistencyLevel(ConsistencyLevel.ALL); assertEquals(ConsistencyLevel.ALL, statement.getConsistencyLevel()); StatementOptionsBuilder.consistencyLevel(ConsistencyLevel.EACH_QUORUM).build().applyTo(statement); assertEquals(ConsistencyLevel.EACH_QUORUM, statement.getConsistencyLevel()); }
public static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withConsistencyLevel(level); }
StatementOptionsBuilder { public static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withConsistencyLevel(level); } }
StatementOptionsBuilder { public static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withConsistencyLevel(level); } StatementOptionsBuilder(); }
StatementOptionsBuilder { public static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withConsistencyLevel(level); } StatementOptionsBuilder(); static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level); static StatementOptionsBuilder defaultTimestamp(long timestamp); static StatementOptionsBuilder disableTracing(); static StatementOptions empty(); static StatementOptionsBuilder enableTracing(); static StatementOptionsBuilder fetchSize(int size); static StatementOptionsBuilder retryPolicy(RetryPolicy policy); static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level); StatementOptions build(); StatementOptionsBuilder withConsistencyLevel(ConsistencyLevel level); }
StatementOptionsBuilder { public static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withConsistencyLevel(level); } StatementOptionsBuilder(); static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level); static StatementOptionsBuilder defaultTimestamp(long timestamp); static StatementOptionsBuilder disableTracing(); static StatementOptions empty(); static StatementOptionsBuilder enableTracing(); static StatementOptionsBuilder fetchSize(int size); static StatementOptionsBuilder retryPolicy(RetryPolicy policy); static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level); StatementOptions build(); StatementOptionsBuilder withConsistencyLevel(ConsistencyLevel level);  }