use of com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer in project embedded-cassandra by nosan.
the class CassandraExamples method workingDirectoryInitializer.
// end::start-shared-cassandra[]
private void workingDirectoryInitializer() {
// tag::working-directory-initializer[]
new CassandraBuilder().workingDirectoryInitializer(new WorkingDirectoryInitializer() {
@Override
public void init(Path workingDirectory, Version version) throws IOException {
// Custom logic
}
}).build();
// end::working-directory-initializer[]
// tag::working-directory-initializer-skip-existing[]
new CassandraBuilder().workingDirectoryInitializer(new DefaultWorkingDirectoryInitializer(new WebCassandraDirectoryProvider(), DefaultWorkingDirectoryInitializer.CopyStrategy.SKIP_EXISTING)).build();
// end::working-directory-initializer-skip-existing[]
}
Aggregations