Class: Jetra::Thrift::Service::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/jetra/adapter/thrift/service.rb

Instance Method Summary collapse

Instance Method Details

#process_call(seqid, iprot, oprot) ⇒ Object



35
36
37
38
39
40
# File 'lib/jetra/adapter/thrift/service.rb', line 35

def process_call(seqid, iprot, oprot)
  args = read_args(iprot, Call_args)
  result = Call_result.new()
  result.success = @handler.call(args.request)
  write_result(result, oprot, 'call', seqid)
end