Module: vertx-cassandra-js/cassandra_client

Classes

CassandraClient

Methods

(static) CassandraClient.createNonShared(vertx, options) → {CassandraClient}

Create a Cassandra client which maintains its own driver session.

It is not recommended to create several non shared clients in an application.

Parameters:
Name Type Description
vertx Vertx the Vert.x instance
options Object the options
Source:
Returns:
the client
Type
CassandraClient

(static) CassandraClient.createShared(vertx, clientName, options) → {CassandraClient}

Create a Cassandra client that shares its driver session with any other client having the same name.
Parameters:
Name Type Description
vertx Vertx the Vert.x instance
clientName string the shared client name
options Object the options
Source:
Returns:
the client
Type
CassandraClient