Class: Cassandra::Pooled
- Inherits:
-
Object
- Object
- Cassandra::Pooled
- Includes:
- Pools::Pooled
- Defined in:
- lib/cassandra/pooled.rb
Instance Attribute Summary
Attributes included from Pools::Pooled
#connection_pool, #preparation_chain
Instance Method Summary collapse
- #__connection ⇒ Object
- #__disconnect(client) ⇒ Object
-
#initialize(*args) ⇒ Pooled
constructor
A new instance of Pooled.
Methods included from Pools::Pooled
Constructor Details
#initialize(*args) ⇒ Pooled
Returns a new instance of Pooled.
8 9 10 11 |
# File 'lib/cassandra/pooled.rb', line 8 def initialize(*args) @cassandra_args = args.dup super end |
Instance Method Details
#__connection ⇒ Object
13 14 15 |
# File 'lib/cassandra/pooled.rb', line 13 def __connection Cassandra.new(*@cassandra_args) end |
#__disconnect(client) ⇒ Object
17 18 19 |
# File 'lib/cassandra/pooled.rb', line 17 def __disconnect(client) client.disconnect! if client end |