@Test public void testRetryPolicy() throws Exception { statement.setRetryPolicy(FallthroughRetryPolicy.INSTANCE); assertEquals(FallthroughRetryPolicy.INSTANCE, statement.getRetryPolicy()); StatementOptionsBuilder.retryPolicy(DowngradingConsistencyRetryPolicy.INSTANCE).build().applyTo(statement); assertEquals(DowngradingConsistencyRetryPolicy.INSTANCE, statement.getRetryPolicy()); }
public static StatementOptionsBuilder retryPolicy(RetryPolicy policy) { return new StatementOptionsBuilder().withRetryPolicy(policy); }
StatementOptionsBuilder { public static StatementOptionsBuilder retryPolicy(RetryPolicy policy) { return new StatementOptionsBuilder().withRetryPolicy(policy); } }
StatementOptionsBuilder { public static StatementOptionsBuilder retryPolicy(RetryPolicy policy) { return new StatementOptionsBuilder().withRetryPolicy(policy); } StatementOptionsBuilder(); }
StatementOptionsBuilder { public static StatementOptionsBuilder retryPolicy(RetryPolicy policy) { return new StatementOptionsBuilder().withRetryPolicy(policy); } 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 retryPolicy(RetryPolicy policy) { return new StatementOptionsBuilder().withRetryPolicy(policy); } 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);  }