This project is read-only.

ConsistencyLevel set property

Sep 11, 2011 at 8:50 PM

Now, CassandraContext.ConsistencyLevel is get only property. But advantage of cassandra is that we can change consistencylevel each time. So, CassandraContext.ConsistencyLevel should be added set-property.

But we can't add set-property easily because CassandraConnectionConfig is immutable. I think that ConsistencyLevel should be moved from CassandraConnectionConfig to CassandraContext.

What do you think?

Sep 13, 2011 at 10:54 PM

Sounds very good. I was actually thinking about that too.

We still need a default value. We could rename CassandraConnectionConfig.ConsistencyLevel to DefaultConsistencyLevel, or keep its name as is and just use it as a default value. My preference is the latter.

Sep 14, 2011 at 1:22 AM
Edited Sep 14, 2011 at 1:24 AM

I like the latter, too. Can you implement this fix?

Sep 20, 2011 at 7:14 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.