- Common ways to obtain Cluster$Manager
private void myMethod () {Cluster$Manager c =
Cluster cluster;String str;List list;Configuration configuration;new Manager(cluster, str, list, configuration)
- Smart code suggestions by Codota
}
if (oldCore < newCoreConnections && manager != null) manager.ensurePoolsSizing(); return this;
coreConnections[distance.ordinal()] = newCoreConnections; if (oldCore < newCoreConnections && manager != null) manager.ensurePoolsSizing(); return this;
/** * 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; }
coreConnections[distance.ordinal()] = newCoreConnections; if (oldCore < newCoreConnections && manager != null) manager.ensurePoolsSizing(); return this;
coreConnections[distance.ordinal()] = newCoreConnections; if (oldCore < newCoreConnections && manager != null) manager.ensurePoolsSizing(); return this;