class

Cassandra::DBApi::Cluster

Inherits Reference / Object

Represents a Cassandra cluster. Stores connection parameters like host and port. A single cluster can be used to create many sessions so a custom reference counting mechanism is used to track and destroy sessions as needed.

Constructors

new(context : DB::ConnectionContext)

Initialises a cluster object with the supplied host and port from the context.

Source

Class methods

acquire(context : DB::ConnectionContext)
Source

Instance methods

do_close

Close the connection.

Disposes the cluster when the last reference is removed. Needs to be called to prevent memory leaks.

Source
paging_size
Source