/** * Constructs a new Cluster instance. * * <p>This constructor is mainly exposed so Cluster can be sub-classed as a means to make * testing/mocking easier or to "intercept" its method call. Most users shouldn't extend this * class however and should prefer using the {@link #builder}. * * @param initializer the initializer to use. * @see #buildFrom */ protected Cluster(Initializer initializer) { this( initializer.getClusterName(), checkNotEmpty(initializer.getContactPoints()), initializer.getConfiguration(), initializer.getInitialListeners()); }
/** * Constructs a new Cluster instance. * <p/> * This constructor is mainly exposed so Cluster can be sub-classed as a means to make testing/mocking * easier or to "intercept" its method call. Most users shouldn't extend this class however and * should prefer using the {@link #builder}. * * @param initializer the initializer to use. * @see #buildFrom */ protected Cluster(Initializer initializer) { this(initializer.getClusterName(), checkNotEmpty(initializer.getContactPoints()), initializer.getConfiguration(), initializer.getInitialListeners()); }
/** * Constructs a new Cluster instance. * <p/> * This constructor is mainly exposed so Cluster can be sub-classed as a means to make testing/mocking * easier or to "intercept" its method call. Most users shouldn't extend this class however and * should prefer using the {@link #builder}. * * @param initializer the initializer to use. * @see #buildFrom */ protected Cluster(Initializer initializer) { this(initializer.getClusterName(), checkNotEmpty(initializer.getContactPoints()), initializer.getConfiguration(), initializer.getInitialListeners()); }
/** * Constructs a new Cluster instance. * <p> * This constructor is mainly exposed so Cluster can be sub-classed as a means to make testing/mocking * easier or to "intercept" its method call. Most users shouldn't extend this class however and * should prefer using the {@link #builder}. * * @param initializer the initializer to use. * @see #buildFrom */ protected Cluster(Initializer initializer) { this(initializer.getClusterName(), checkNotEmpty(initializer.getContactPoints()), initializer.getConfiguration(), initializer.getInitialListeners()); }
/** * Constructs a new Cluster instance. * <p/> * This constructor is mainly exposed so Cluster can be sub-classed as a means to make testing/mocking * easier or to "intercept" its method call. Most users shouldn't extend this class however and * should prefer using the {@link #builder}. * * @param initializer the initializer to use. * @see #buildFrom */ protected Cluster(Initializer initializer) { this(initializer.getClusterName(), checkNotEmpty(initializer.getContactPoints()), initializer.getConfiguration(), initializer.getInitialListeners()); }