Class: Thrift::StoredMessageProtocol

Inherits:
BaseProtocol show all
Includes:
ProtocolDecorator
Defined in:
lib/thrift/multiplexed_processor.rb

Instance Attribute Summary

Attributes inherited from BaseProtocol

#trans

Instance Method Summary collapse

Methods included from ProtocolDecorator

#read_binary, #read_bool, #read_byte, #read_double, #read_field_begin, #read_field_end, #read_i16, #read_i32, #read_i64, #read_list_begin, #read_list_end, #read_map_begin, #read_map_end, #read_message_end, #read_set_begin, #read_set_end, #read_string, #read_struct_begin, #read_struct_end, #trans, #write_binary, #write_bool, #write_byte, #write_double, #write_field_begin, #write_field_end, #write_field_stop, #write_i16, #write_i32, #write_i64, #write_list_begin, #write_list_end, #write_map_begin, #write_map_end, #write_message_begin, #write_message_end, #write_set_begin, #write_set_end, #write_string, #write_struct_begin, #write_struct_end

Methods inherited from BaseProtocol

#native?, #read_binary, #read_bool, #read_byte, #read_double, #read_field_begin, #read_field_end, #read_i16, #read_i32, #read_i64, #read_list_begin, #read_list_end, #read_map_begin, #read_map_end, #read_message_end, #read_set_begin, #read_set_end, #read_string, #read_struct_begin, #read_struct_end, #read_type, #skip, #to_s, #write_binary, #write_bool, #write_byte, #write_double, #write_field, #write_field_begin, #write_field_end, #write_field_stop, #write_i16, #write_i32, #write_i64, #write_list_begin, #write_list_end, #write_map_begin, #write_map_end, #write_message_begin, #write_message_end, #write_set_begin, #write_set_end, #write_string, #write_struct_begin, #write_struct_end, #write_type

Constructor Details

#initialize(protocol, message_begin) ⇒ StoredMessageProtocol

Returns a new instance of StoredMessageProtocol.



67
68
69
70
# File 'lib/thrift/multiplexed_processor.rb', line 67

def initialize(protocol, message_begin)
  super(protocol)
  @message_begin = message_begin
end

Instance Method Details

#read_message_beginObject



72
73
74
# File 'lib/thrift/multiplexed_processor.rb', line 72

def read_message_begin
  @message_begin
end