Annotation Type MongoFindOptions


  • @Retention(RUNTIME)
    @Target({ANNOTATION_TYPE,METHOD,TYPE})
    @Documented
    @Inherited
    public @interface MongoFindOptions
    Defines a custom MongoDB find query options.
    Since:
    3.3.0
    Author:
    Denis Stepanov
    • Element Detail

      • batchSize

        int batchSize
        The batchSize.
        Returns:
        The batchSize value
        Default:
        -1
      • skip

        int skip
        The skip.
        Returns:
        The skip value
        Default:
        -1
      • limit

        int limit
        The limit.
        Returns:
        The limit value
        Default:
        -1
      • maxTimeMS

        long maxTimeMS
        The maxTimeMS.
        Returns:
        The maxTimeMS value
        Default:
        -1L
      • maxAwaitTimeMS

        long maxAwaitTimeMS
        The maxAwaitTimeMS.
        Returns:
        The maxAwaitTimeMS value
        Default:
        -1L
      • cursorType

        com.mongodb.CursorType cursorType
        The cursorType.
        Returns:
        The cursorType value
        Default:
        com.mongodb.CursorType.NonTailable
      • noCursorTimeout

        boolean noCursorTimeout
        The cursorType.
        Returns:
        The cursorType value
        Default:
        false
      • partial

        boolean partial
        The partial.
        Returns:
        The partial value
        Default:
        false
      • comment

        java.lang.String comment
        The comment.
        Returns:
        The comment value
        Default:
        ""
      • hint

        java.lang.String hint
        The hint.
        Returns:
        The hint value
        Default:
        ""
      • max

        java.lang.String max
        The max.
        Returns:
        The max value
        Default:
        ""
      • min

        java.lang.String min
        The min.
        Returns:
        The min value
        Default:
        ""
      • returnKey

        boolean returnKey
        The returnKey.
        Returns:
        The returnKey value
        Default:
        false
      • showRecordId

        boolean showRecordId
        The showRecordId.
        Returns:
        The showRecordId value
        Default:
        false
      • allowDiskUse

        boolean allowDiskUse
        The allowDiskUse.
        Returns:
        The allowDiskUse value
        Default:
        false