Class: Cql::Protocol::EventResponse
- Inherits:
-
ResultResponse
- Object
- Response
- ResultResponse
- Cql::Protocol::EventResponse
- Defined in:
- lib/cql/protocol/responses/event_response.rb
Direct Known Subclasses
Class Method Summary collapse
Methods inherited from ResultResponse
Methods included from Decoding
#read_byte!, #read_bytes!, #read_consistency!, #read_decimal!, #read_double!, #read_float!, #read_inet!, #read_int!, #read_long!, #read_long_string!, #read_option!, #read_short!, #read_short_bytes!, #read_string!, #read_string_list!, #read_string_map!, #read_string_multimap!, #read_uuid!, #read_varint!
Class Method Details
.decode!(buffer) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cql/protocol/responses/event_response.rb', line 6 def self.decode!(buffer) type = read_string!(buffer) case type when SchemaChangeEventResponse::TYPE SchemaChangeEventResponse.decode!(buffer) when StatusChangeEventResponse::TYPE StatusChangeEventResponse.decode!(buffer) when TopologyChangeEventResponse::TYPE TopologyChangeEventResponse.decode!(buffer) else raise UnsupportedEventTypeError, %(Unsupported event type: "#{type}") end end |