Class ListCollectionsOptions


  • public class ListCollectionsOptions
    extends java.lang.Object
    Options for ListCollections.
    Since:
    1.0
    • Constructor Detail

      • ListCollectionsOptions

        public ListCollectionsOptions()
    • Method Detail

      • setFilter

        public ListCollectionsOptions setFilter​(JsonObject filter)
        Sets the query filter to apply to the query.
        Parameters:
        filter - the filter, which may be null.
        Returns:
        this
        MongoDB documentation
        Filter
      • setMaxTime

        public ListCollectionsOptions setMaxTime​(java.lang.Long maxTime)
        Sets the maximum execution time on the server for this operation.
        Parameters:
        maxTime - the max time (in milliseconds)
        Returns:
        this
        MongoDB documentation
        Max Time
      • getMaxTime

        public java.lang.Long getMaxTime()
      • setBatchSize

        public ListCollectionsOptions setBatchSize​(java.lang.Integer batchSize)
        Sets the number of documents to return per batch.

        Overrides the Subscription.request(long) value for setting the batch size, allowing for fine grained control over the underlying cursor.

        Parameters:
        batchSize - the batch size
        Returns:
        this
        Since:
        1.8
        MongoDB documentation
        Batch Size
      • getBatchSize

        public java.lang.Integer getBatchSize()