123456789_123456789_123456789_123456789_123456789_

Module: Mongo::Cursor::NonTailable Private

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/mongo/cursor/nontailable.rb

Overview

This module is used by cursor-implementing classes to indicate that the only cursors they generate are non-tailable, and iterable.

Instance Method Summary

Instance Method Details

#cursor_typenil

These views are always non-tailable.

Returns:

  • (nil)

    indicating a non-tailable cursor.

[ GitHub ]

  
# File 'lib/mongo/cursor/nontailable.rb', line 13

def cursor_type
  nil
end

#timeout_mode:iterable

These views apply timeouts to each iteration of a cursor, as opposed to the entire lifetime of the cursor.

Returns:

  • (:iterable)

    indicating a cursor with a timeout mode of “iterable”.

[ GitHub ]

  
# File 'lib/mongo/cursor/nontailable.rb', line 22

def timeout_mode
  :iterable
end