class Cql::Protocol::EventResponse
Constants
- EVENT_TYPES
Public Class Methods
decode(protocol_version, buffer, length, trace_id=nil)
click to toggle source
# File lib/cql/protocol/responses/event_response.rb, line 6 def self.decode(protocol_version, buffer, length, trace_id=nil) type = buffer.read_string impl = EVENT_TYPES[type] raise UnsupportedEventTypeError, %(Unsupported event type: "#{type}") unless impl new_length = length - 4 - type.bytesize impl.decode(protocol_version, buffer, new_length, trace_id) end