Class: Thrift::BaseClient

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/thrift/client.rb

Instance Method Summary collapse

Methods included from Client

#handle_exception, #initialize, #receive_message, #send_message, #send_message_args, #send_message_instance, #send_oneway_message

Instance Method Details

#call_binary(name, req, resp_klass) ⇒ Object



105
106
107
108
109
# File 'lib/thrift/client.rb', line 105

def call_binary(name, req, resp_klass)
  @oprot.write_message_begin(name, Thrift::MessageTypes::CALL, @seqid)
  send_message_instance(req)
  receive_message(resp_klass)
end

#call_unary(name, req) ⇒ Object



100
101
102
103
# File 'lib/thrift/client.rb', line 100

def call_unary(name, req)
  @oprot.write_message_begin(name, Thrift::MessageTypes::ONEWAY, @seqid)
  send_message_instance(req)
end