| Class | Mongo::Protocol::KillCursors |
| In: |
lib/mongo/protocol/kill_cursors.rb
|
| Parent: | Message |
MongoDB Wire protocol KillCursors message.
This is a client request message that is sent to the server in order to kill a number of cursors.
@api semipublic
| OP_CODE | = | 2007 |
The operation code required to specify KillCursors message. @return [Fixnum] the
operation code.
@since 2.5.0 |
| upconverter | [R] |
Creates a new KillCursors message
@example Kill the cursor on the server with id 1.
KillCursors.new([1])
@param [ Mongo::Database ] collection The collection. @param [ Mongo::Database ] database The database. @param [ Array<Fixnum> ] cursor_ids The cursor ids to kill.