congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ImmutableCassandraCredentialsConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
ImmutableCassandraCredentialsConfig
in
com.palantir.atlasdb.cassandra

Best Java code snippets using com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig (Showing top 2 results out of 315)

origin: palantir/atlasdb

private CassandraContainer(String dockerComposeFile, String name) {
  String keyspace = UUID.randomUUID().toString().replace("-", "_");
  this.config = ImmutableCassandraKeyValueServiceConfig.builder()
      .addServers(forService(name))
      .keyspace(keyspace)
      .credentials(ImmutableCassandraCredentialsConfig.builder()
          .username(USERNAME)
          .password(PASSWORD)
          .build())
      .poolSize(20)
      .mutationBatchCount(10000)
      .mutationBatchSizeBytes(10000000)
      .fetchBatchCount(1000)
      .replicationFactor(1)
      .build();
  this.dockerComposeFile = dockerComposeFile;
  this.name = name;
}
origin: palantir/atlasdb

@Override
public KeyValueServiceConfig getKeyValueServiceConfig(InetSocketAddress addr) {
  return ImmutableCassandraKeyValueServiceConfig.builder()
      .addServers(addr)
      .poolSize(20)
      .keyspace("atlasdb")
      .credentials(ImmutableCassandraCredentialsConfig.builder()
          .username("cassandra")
          .password("cassandra")
          .build())
      .ssl(false)
      .replicationFactor(1)
      .mutationBatchCount(10000)
      .mutationBatchSizeBytes(10000000)
      .fetchBatchCount(1000)
      .autoRefreshNodes(false)
      .build();
}
com.palantir.atlasdb.cassandraImmutableCassandraCredentialsConfig

Most used methods

  • builder

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now