class Mongo::Operation::KillCursors::Command

A MongoDB killcursors operation sent as a command message.

@api private

@since 2.5.2

Private Instance Methods

message(connection) click to toggle source
# File lib/mongo/operation/kill_cursors/command.rb, line 42
def message(connection)
  Protocol::Query.new(db_name, Database::COMMAND, selector(connection), options(connection))
end
selector(connection) click to toggle source
# File lib/mongo/operation/kill_cursors/command.rb, line 35
def selector(connection)
  {
    killCursors: coll_name,
    cursors: int64_cursor_ids,
  }
end