title: How to set consistency level for all queries using Cassandra Java Driver?
body: <p>On an earlier version I would do something like this:</p>
  
  <pre><code>QueryOptions queryOptions = new QueryOptions();
  queryOptions.setConsistencyLevel(ConsistencyLevel.LOCAL_ONE)
  cluster = Cluster.builder()
          .withQueryOptions(queryOptions)
          ...
          .build();
  </code></pre>
  
  <p>I can't find a way to do this with DataStax Java Driver 4.2</p>
  
  <p>The closest I could find is</p>
  
  <p><code>boundStatement.setConsistencyLevel(ConsistencyLevel.LOCAL_ONE);</code></p>
  
  <p>but I would like to set the level for all queries.</p>