class Mongo::Operation::KillCursors

A MongoDB kill cursors operation.

@example Create the kill cursors operation.

Mongo::Operation::KillCursor.new({ :cursor_ids => [1, 2] })

Initialization:

param [ Hash ] spec The specifications for the operation.

option spec :cursor_ids [ Array ] The ids of cursors to kill.

@since 2.0.0

Private Instance Methods

message(server) click to toggle source
# File lib/mongo/operation/kill_cursors.rb, line 35
def message(server)
  Protocol::KillCursors.new(coll_name, db_name, cursor_ids)
end