Class: CassandraCQL::Pooled
- Inherits:
-
Object
- Object
- CassandraCQL::Pooled
show all
- Includes:
- Pools::Pooled
- Defined in:
- lib/cassandra-cql/pooled.rb
Instance Attribute Summary
#connection_pool, #preparation_chain
Instance Method Summary
collapse
#__prepare, #with_connection
Constructor Details
#initialize(*args) ⇒ Pooled
12
13
14
15
|
# File 'lib/cassandra-cql/pooled.rb', line 12
def initialize(*args)
@cassandra_args = args.dup
super
end
|
Instance Method Details
#__connection ⇒ Object
17
18
19
|
# File 'lib/cassandra-cql/pooled.rb', line 17
def __connection
CassandraCQL::Database.new(*@cassandra_args)
end
|
#__disconnect(client) ⇒ Object
21
22
23
|
# File 'lib/cassandra-cql/pooled.rb', line 21
def __disconnect(client)
client.disconnect! if client
end
|