Class TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder
java.lang.Object
org.springframework.data.mongodb.core.messaging.TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder
- Enclosing class:
- TailableCursorRequest.TailableCursorRequestOptions
public static class TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder
extends Object
Builder for creating
TailableCursorRequest.TailableCursorRequestOptions
.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
collection
(String collection) Set the collection name to tail.Set the filter to apply.
-
Method Details
-
collection
public TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder collection(String collection) Set the collection name to tail.- Parameters:
collection
- must not be null nor empty.- Returns:
- this.
-
filter
public TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder filter(Query filter) Set the filter to apply.- Parameters:
filter
- theQuery
to apply for filtering events. Must not be null.- Returns:
- this.
-
build
- Returns:
- the built
TailableCursorRequest.TailableCursorRequestOptions
.
-