Module: InternalScalarisNopClose
- Included in:
- Scalaroid::PubSub, Scalaroid::ReplicatedDHT, Scalaroid::Transaction, Scalaroid::TransactionSingleOp
- Defined in:
- lib/scalaroid.rb
Instance Method Summary collapse
-
#close_connection ⇒ Object
Close the connection to Scalaris (it will automatically be re-opened on the next request).
-
#nop(value) ⇒ Object
No operation (may be used for measuring the JSON overhead).
Instance Method Details
#close_connection ⇒ Object
Close the connection to Scalaris (it will automatically be re-opened on the next request).
44 45 46 |
# File 'lib/scalaroid.rb', line 44 def close_connection @conn.close() end |
#nop(value) ⇒ Object
No operation (may be used for measuring the JSON overhead).
36 37 38 39 40 |
# File 'lib/scalaroid.rb', line 36 def nop(value) value = @conn.class.encode_value(value) result = @conn.call(:nop, [value]) @conn.class.process_result_nop(result) end |