Example usage for org.springframework.data.cassandra.core.cql.keyspace KeyspaceOption DURABLE_WRITES

List of usage examples for org.springframework.data.cassandra.core.cql.keyspace KeyspaceOption DURABLE_WRITES

Introduction

In this page you can find the example usage for org.springframework.data.cassandra.core.cql.keyspace KeyspaceOption DURABLE_WRITES.

Prototype

KeyspaceOption DURABLE_WRITES

To view the source code for org.springframework.data.cassandra.core.cql.keyspace KeyspaceOption DURABLE_WRITES.

Click Source Link

Usage

From source file:com.example.CassandraConfiguration.java

@Override
protected List<CreateKeyspaceSpecification> getKeyspaceCreations() {
    final CreateKeyspaceSpecification specification = CreateKeyspaceSpecification
            .createKeyspace(CassandraConfiguration.KEY_SPACE_NAME).ifNotExists()
            .with(KeyspaceOption.DURABLE_WRITES, true);
    return Collections.singletonList(specification);
}