org.springframework.data.mongodb.repository

Annotation Type Meta

    • Element Detail

      • maxExecutionTimeMs

        public abstract long maxExecutionTimeMs
        Set the maximum time limit in milliseconds for processing operations.
        Returns:
        Since:
        1.10
        Default:
        -1L
      • maxScanDocuments

        public abstract long maxScanDocuments
        Only scan the specified number of documents.
        Returns:
        Default:
        -1L
      • cursorBatchSize

        public abstract int cursorBatchSize
        Sets the number of documents to return per batch.
        Use 0 (zero) for no limit. A negative limit closes the cursor after returning a single batch indicating to the server that the client will not ask for a subsequent one.
        Returns:
        0 (zero) by default.
        Since:
        2.1
        Default:
        0
      • comment

        public abstract String comment
        Add a comment to the query.
        Returns:
        Default:
        ""
      • snapshot

        public abstract boolean snapshot
        Using snapshot prevents the cursor from returning a document more than once.
        Returns:
        Default:
        false