Class: Concord::Thrift::MutableEphemeralStateService::Processor
- Inherits:
-
Object
- Object
- Concord::Thrift::MutableEphemeralStateService::Processor
show all
- Includes:
- Thrift::Processor
- Defined in:
- lib/gen-rb/mutable_ephemeral_state_service.rb
Instance Method Summary
collapse
Instance Method Details
#process_getState(seqid, iprot, oprot) ⇒ Object
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 63
def process_getState(seqid, iprot, oprot)
args = read_args(iprot, GetState_args)
result = GetState_result.new()
begin
result.success = @handler.getState(args.key)
rescue ::Concord::Thrift::BoltError => e
result.e = e
end
write_result(result, oprot, 'getState', seqid)
end
|
#process_setState(seqid, iprot, oprot) ⇒ Object
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/gen-rb/mutable_ephemeral_state_service.rb', line 52
def process_setState(seqid, iprot, oprot)
args = read_args(iprot, SetState_args)
result = SetState_result.new()
begin
@handler.setState(args.key, args.value)
rescue ::Concord::Thrift::BoltError => e
result.e = e
end
write_result(result, oprot, 'setState', seqid)
end
|