Class: Cassie::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/cassie.rb

Overview

Message passed to subscribers with the statement, options, and time for each statement to execute. Note that if statements are batched they will be packed into one message with a Cassandra::Statements::Batch statement and empty options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement, options, elapsed_time) ⇒ Message

Returns a new instance of Message.



31
32
33
34
35
# File 'lib/cassie.rb', line 31

def initialize(statement, options, elapsed_time)
  @statement = statement
  @options = options
  @elapsed_time = elapsed_time
end

Instance Attribute Details

#elapsed_timeObject (readonly)

Returns the value of attribute elapsed_time.



29
30
31
# File 'lib/cassie.rb', line 29

def elapsed_time
  @elapsed_time
end

#optionsObject (readonly)

Returns the value of attribute options.



29
30
31
# File 'lib/cassie.rb', line 29

def options
  @options
end

#statementObject (readonly)

Returns the value of attribute statement.



29
30
31
# File 'lib/cassie.rb', line 29

def statement
  @statement
end