Class: Concord::Thrift::MutableEphemeralStateService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/gen-rb/mutable_ephemeral_state_service.rb

Direct Known Subclasses

BoltProxyService::Client

Instance Method Summary collapse

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_getStateObject

Raises:

  • (::Thrift::ApplicationException)


40
41
42
43
44
45
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 40

def recv_getState()
  result = receive_message(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_setStateObject



25
26
27
28
29
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 25

def recv_setState()
  result = receive_message(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)
  send_message('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)
  send_message('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