Class: Concord::Thrift::MutableEphemeralStateService::Client
- Inherits:
-
Object
- Object
- Concord::Thrift::MutableEphemeralStateService::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/gen-rb/mutable_ephemeral_state_service.rb
Direct Known Subclasses
Instance Method Summary collapse
- #getState(key) ⇒ Object
- #recv_getState ⇒ Object
- #recv_setState ⇒ Object
- #send_getState(key) ⇒ Object
- #send_setState(key, value) ⇒ Object
- #setState(key, value) ⇒ Object
Instance Method Details
#getState(key) ⇒ Object
31 32 33 34 |
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 31 def getState(key) send_getState(key) return recv_getState() end |
#recv_getState ⇒ Object
40 41 42 43 44 45 |
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 40 def recv_getState() result = (GetState_result) return result.success unless result.success.nil? raise result.e unless result.e.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getState failed: unknown result') end |
#recv_setState ⇒ Object
25 26 27 28 29 |
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 25 def recv_setState() result = (SetState_result) raise result.e unless result.e.nil? return end |
#send_getState(key) ⇒ Object
36 37 38 |
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 36 def send_getState(key) ('getState', GetState_args, :key => key) end |
#send_setState(key, value) ⇒ Object
21 22 23 |
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 21 def send_setState(key, value) ('setState', SetState_args, :key => key, :value => value) end |
#setState(key, value) ⇒ Object
16 17 18 19 |
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 16 def setState(key, value) send_setState(key, value) recv_setState() end |