class Cassandra::Protocol::ReadTimeoutErrorResponse
Attributes
blockfor[R]
consistency[R]
data_present[R]
received[R]
Public Class Methods
new(custom_payload, warnings, code, message, consistency, received, blockfor, data_present)
click to toggle source
Calls superclass method
Cassandra::Protocol::ErrorResponse::new
# File lib/cassandra/protocol/responses/read_timeout_error_response.rb 24 def initialize(custom_payload, 25 warnings, 26 code, 27 message, 28 consistency, 29 received, 30 blockfor, 31 data_present) 32 super(custom_payload, warnings, code, message) 33 34 @consistency = consistency 35 @received = received 36 @blockfor = blockfor 37 @data_present = data_present 38 end
Public Instance Methods
to_error(keyspace, statement, options, hosts, consistency, retries)
click to toggle source
# File lib/cassandra/protocol/responses/read_timeout_error_response.rb 40 def to_error(keyspace, statement, options, hosts, consistency, retries) 41 Errors::ReadTimeoutError.new(@message, 42 @custom_payload, 43 @warnings, 44 keyspace, 45 statement, 46 options, 47 hosts, 48 consistency, 49 retries, 50 @data_present, 51 @consistency, 52 @blockfor, 53 @received) 54 end
to_s()
click to toggle source
# File lib/cassandra/protocol/responses/read_timeout_error_response.rb 56 def to_s 57 "#{super} #{@consistency} #{@received} #{@blockfor} #{@data_present}" 58 end