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).
42 43 44 |
# File 'lib/scalaroid.rb', line 42 def close_connection @conn.close() end |
#nop(value) ⇒ Object
No operation (may be used for measuring the JSON overhead).
34 35 36 37 38 |
# File 'lib/scalaroid.rb', line 34 def nop(value) value = @conn.class.encode_value(value) result = @conn.call(:nop, [value]) @conn.class.process_result_nop(result) end |