Java Code Examples for com.datastax.oss.driver.api.core.ConsistencyLevel#QUORUM

The following examples show how to use com.datastax.oss.driver.api.core.ConsistencyLevel#QUORUM . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CassandraTransactionManagerTestCase.java    From jstarcraft-core with Apache License 2.0 4 votes vote down vote up
@Before
public void testBefore() {
    manager = new CassandraTransactionManager(cqlSession, ConsistencyLevel.QUORUM);
    manager.create(name);
}
 
Example 2
Source File: CassandraLockProvider.java    From ShedLock with Apache License 2.0 4 votes vote down vote up
public CassandraLockProvider(@NonNull CqlSession cqlSession) {
    super(new CassandraStorageAccessor(cqlSession, DEFAULT_TABLE, ConsistencyLevel.QUORUM));
}
 
Example 3
Source File: CassandraLockProviderIntegrationTest.java    From ShedLock with Apache License 2.0 4 votes vote down vote up
private Lock findLock(String lockName) {
    CassandraStorageAccessor cassandraStorageAccessor = new CassandraStorageAccessor(cqlSession, CassandraLockProvider.DEFAULT_TABLE, ConsistencyLevel.QUORUM);
    return cassandraStorageAccessor.find(lockName).get();
}