Codota Logo
Cluster$Manager.ensurePoolsSizing
Code IndexAdd Codota to your IDE (free)

How to use
ensurePoolsSizing
method
in
com.datastax.driver.core.Cluster$Manager

Best Java code snippets using com.datastax.driver.core.Cluster$Manager.ensurePoolsSizing (Showing top 5 results out of 315)

  • Common ways to obtain Cluster$Manager
private void myMethod () {
Cluster$Manager c =
  • Codota IconCluster cluster;String str;List list;Configuration configuration;new Manager(cluster, str, list, configuration)
  • Smart code suggestions by Codota
}
origin: com.datastax.cassandra/cassandra-driver-core

if (oldCore < newCoreConnections && manager != null) manager.ensurePoolsSizing();
return this;
origin: com.yugabyte/cassandra-driver-core

coreConnections[distance.ordinal()] = newCoreConnections;
if (oldCore < newCoreConnections && manager != null)
  manager.ensurePoolsSizing();
return this;
origin: com.stratio.cassandra/cassandra-driver-core

/**
 * Sets the core number of connections per host.
 *
 * @param distance the {@code HostDistance} for which to set this threshold.
 * @param newCoreConnections the value to set
 * @return this {@code PoolingOptions}.
 *
 * @throws IllegalArgumentException if {@code distance == HostDistance.IGNORED},
 * or if {@code newCoreConnections} is greater than the maximum value for this distance.
 */
public synchronized PoolingOptions setCoreConnectionsPerHost(HostDistance distance, int newCoreConnections) {
  if (distance == HostDistance.IGNORED)
      throw new IllegalArgumentException("Cannot set core connections per host for " + distance + " hosts");
  checkConnectionsPerHostOrder(newCoreConnections, maxConnections[distance.ordinal()], distance);
  int oldCore = coreConnections[distance.ordinal()];
  coreConnections[distance.ordinal()] = newCoreConnections;
  if (oldCore < newCoreConnections && manager != null)
    manager.ensurePoolsSizing();
  return this;
}
origin: com.facebook.presto.cassandra/cassandra-driver

coreConnections[distance.ordinal()] = newCoreConnections;
if (oldCore < newCoreConnections && manager != null)
  manager.ensurePoolsSizing();
return this;
origin: io.prestosql.cassandra/cassandra-driver

coreConnections[distance.ordinal()] = newCoreConnections;
if (oldCore < newCoreConnections && manager != null)
  manager.ensurePoolsSizing();
return this;
com.datastax.driver.coreCluster$ManagerensurePoolsSizing

Popular methods of Cluster$Manager

  • loadBalancingPolicy
  • submitSchemaRefresh
  • triggerOnDown
  • isClosed
  • submitNodeListRefresh
  • <init>
  • addPrepared
  • close
  • init
  • logUnsupportedVersionProtocol
  • prepareAllQueries
  • protocolVersion
  • prepareAllQueries,
  • protocolVersion,
  • reconnectionPolicy,
  • refreshConnectedHosts,
  • refreshSchemaAndSignal,
  • removeHost,
  • translateAddress,
  • triggerOnAdd,
  • triggerOnRemove

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now