Click or drag to resize
IInitializer Interface
Initializer for Cluster instances.

If you want to create a new Cluster instance programmatically, then it is advised to use Cluster.Builder (obtained through the Cluster#builder method).

But it is also possible to implement a custom Initializer that retrieve initialization from a web-service or from a configuration file for instance.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax
C#
public interface IInitializer

The IInitializer type exposes the following members.

Methods
  NameDescription
Public methodGetConfiguration
The configuration to use for the new cluster.

Note that some configuration can be modified after the cluster initialization but some other cannot. In particular, the ones that cannot be change afterwards includes:

  • the port use to connect to Cassandra nodes (see ProtocolOptions).
  • the policies used (see Policies).
  • the authentication info provided (see Configuration).
  • whether metrics are enabled (see Configuration).

Top
Properties
  NameDescription
Public propertyContactPoints
Gets the initial Cassandra hosts to connect to.See Builder.AddContactPoint for more details on contact
Top
See Also