Class: XGen::Mongo::Driver::KillCursorsMessage
- Defined in:
- lib/mongo/message/kill_cursors_message.rb
Constant Summary
Constants inherited from Message
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(*cursors) ⇒ KillCursorsMessage
constructor
A new instance of KillCursorsMessage.
Methods inherited from Message
#dump, #to_a, #update_message_length, #write_doc, #write_int, #write_long, #write_string
Constructor Details
#initialize(*cursors) ⇒ KillCursorsMessage
Returns a new instance of KillCursorsMessage.
26 27 28 29 30 31 |
# File 'lib/mongo/message/kill_cursors_message.rb', line 26 def initialize(*cursors) super(OP_KILL_CURSORS) write_int(0) write_int(cursors.length) cursors.each { |c| write_long c } end |