@Test public void testSerialConsistencyLevel() throws Exception { statement.setSerialConsistencyLevel(ConsistencyLevel.SERIAL); assertEquals(ConsistencyLevel.SERIAL, statement.getSerialConsistencyLevel()); StatementOptionsBuilder.serialConsistencyLevel(ConsistencyLevel.LOCAL_SERIAL).build().applyTo(statement); assertEquals(ConsistencyLevel.LOCAL_SERIAL, statement.getSerialConsistencyLevel()); }
public static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withSerialConsistencyLevel(level); }
StatementOptionsBuilder { public static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withSerialConsistencyLevel(level); } }
StatementOptionsBuilder { public static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withSerialConsistencyLevel(level); } StatementOptionsBuilder(); }
StatementOptionsBuilder { public static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withSerialConsistencyLevel(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 serialConsistencyLevel(ConsistencyLevel level) { return new StatementOptionsBuilder().withSerialConsistencyLevel(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);  }