public static interface SubscriptionRequest.RequestOptions
SubscriptionRequest.| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName()
Get the collection name.
|
default String |
getDatabaseName()
Get the database name of the db.
|
static SubscriptionRequest.RequestOptions |
justCollection(String collection)
Create options with the provided collection.
|
static SubscriptionRequest.RequestOptions |
justDatabase(String database)
Create options with the provided database.
|
default Duration |
maxAwaitTime()
Get the maximum wait time (the time till the next Document is emitted) to apply when reading from the collection.
|
static SubscriptionRequest.RequestOptions |
none()
Create empty options.
|
static SubscriptionRequest.RequestOptions |
of(String database,
String collection)
Create options with the provided database and collection.
|
@Nullable default String getDatabaseName()
database is used.@Nullable String getCollectionName()
default Duration maxAwaitTime()
Duration.ZERO by default.static SubscriptionRequest.RequestOptions none()
SubscriptionRequest.RequestOptions.static SubscriptionRequest.RequestOptions justDatabase(String database)
database - must not be null.SubscriptionRequest.RequestOptions.static SubscriptionRequest.RequestOptions justCollection(String collection)
collection - must not be null.SubscriptionRequest.RequestOptions.static SubscriptionRequest.RequestOptions of(String database, String collection)
database - must not be null.collection - must not be null.SubscriptionRequest.RequestOptions.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.