Tabnine Logo
CassandraFactory.cqlSessionForHintsPoller
Code IndexAdd Tabnine to your IDE (free)

How to use
cqlSessionForHintsPoller
method
in
com.bazaarvoice.emodb.common.cassandra.CassandraFactory

Best Java code snippets using com.bazaarvoice.emodb.common.cassandra.CassandraFactory.cqlSessionForHintsPoller (Showing top 3 results out of 315)

origin: com.bazaarvoice.emodb/emodb-sor

@Provides @Singleton @CQLSessionForHintsPollerMap
Map<String, HintsPollerCQLSession> provideCQLSessionsForHintsPoller(DataStoreConfiguration configuration, CassandraFactory factory) {
  Map<String, HintsPollerCQLSession> cqlSessionMap = Maps.newHashMap();
  for (CassandraConfiguration config : configuration.getCassandraClusters().values()) {
    String clusterName = config.getCluster();
    if(!cqlSessionMap.containsKey(clusterName)) {
      cqlSessionMap.put(clusterName, factory.cqlSessionForHintsPoller(config));
    }
  }
  return ImmutableMap.copyOf(cqlSessionMap);
}
origin: bazaarvoice/emodb

@Provides @Singleton @CQLSessionForHintsPollerMap
Map<String, HintsPollerCQLSession> provideCQLSessionsForHintsPoller(BlobStoreConfiguration configuration, CassandraFactory factory) {
  Map<String, HintsPollerCQLSession> cqlSessionMap = Maps.newHashMap();
  for (CassandraConfiguration config : configuration.getCassandraClusters().values()) {
    String clusterName = config.getCluster();
    if(!cqlSessionMap.containsKey(clusterName)) {
      cqlSessionMap.put(clusterName, factory.cqlSessionForHintsPoller(config));
    }
  }
  return ImmutableMap.copyOf(cqlSessionMap);
}
origin: bazaarvoice/emodb

@Provides @Singleton @CQLSessionForHintsPollerMap
Map<String, HintsPollerCQLSession> provideCQLSessionsForHintsPoller(DataStoreConfiguration configuration, CassandraFactory factory) {
  Map<String, HintsPollerCQLSession> cqlSessionMap = Maps.newHashMap();
  for (CassandraConfiguration config : configuration.getCassandraClusters().values()) {
    String clusterName = config.getCluster();
    if(!cqlSessionMap.containsKey(clusterName)) {
      cqlSessionMap.put(clusterName, factory.cqlSessionForHintsPoller(config));
    }
  }
  return ImmutableMap.copyOf(cqlSessionMap);
}
com.bazaarvoice.emodb.common.cassandraCassandraFactorycqlSessionForHintsPoller

Popular methods of CassandraFactory

  • build
  • newHealthCheck

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JButton (javax.swing)
  • Top 12 Jupyter Notebook extensions
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