public class ReactiveViewIndexManager extends Object
Constructor and Description |
---|
ReactiveViewIndexManager(AsyncViewIndexManager async) |
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
dropDesignDocument(String name,
DesignDocumentNamespace namespace)
Removes a design document from the server.
|
Mono<Void> |
dropDesignDocument(String name,
DesignDocumentNamespace namespace,
DropDesignDocumentOptions options)
Removes a design document from the server.
|
Flux<DesignDocument> |
getAllDesignDocuments(DesignDocumentNamespace namespace)
Returns all of the design documents in the specified namespace.
|
Flux<DesignDocument> |
getAllDesignDocuments(DesignDocumentNamespace namespace,
GetAllDesignDocumentsOptions options)
Returns all of the design documents in the specified namespace.
|
Mono<DesignDocument> |
getDesignDocument(String name,
DesignDocumentNamespace namespace)
Returns the design document from the cluster if present.
|
Mono<DesignDocument> |
getDesignDocument(String name,
DesignDocumentNamespace namespace,
GetDesignDocumentOptions options)
Returns the design document from the cluster if present with custom options.
|
Mono<Void> |
publishDesignDocument(String name)
Convenience method that gets a the document from the development namespace
and upserts it to the production namespace.
|
Mono<Void> |
publishDesignDocument(String name,
PublishDesignDocumentOptions options)
Convenience method that gets a the document from the development namespace
and upserts it to the production namespace.
|
Mono<Void> |
upsertDesignDocument(DesignDocument designDocument,
DesignDocumentNamespace namespace)
Stores the design document on the server under the specified namespace, replacing any existing document
with the same name.
|
Mono<Void> |
upsertDesignDocument(DesignDocument designDocument,
DesignDocumentNamespace namespace,
UpsertDesignDocumentOptions options)
Stores the design document on the server under the specified namespace, replacing any existing document
with the same name.
|
public ReactiveViewIndexManager(AsyncViewIndexManager async)
public Mono<DesignDocument> getDesignDocument(String name, DesignDocumentNamespace namespace)
name
- name of the design document to retrieve.namespace
- namespace to look in.DesignDocumentNotFoundException
- (async) if there is no design document with the given name present.TimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<DesignDocument> getDesignDocument(String name, DesignDocumentNamespace namespace, GetDesignDocumentOptions options)
name
- name of the design document to retrievenamespace
- namespace to look inoptions
- additional optional arguments (timeout, retry, etc.)DesignDocumentNotFoundException
- (async) if there is no design document with the given name present.TimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<Void> upsertDesignDocument(DesignDocument designDocument, DesignDocumentNamespace namespace)
designDocument
- document to storenamespace
- namespace to store it inTimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<Void> upsertDesignDocument(DesignDocument designDocument, DesignDocumentNamespace namespace, UpsertDesignDocumentOptions options)
designDocument
- document to storenamespace
- namespace to store it inoptions
- additional optional arguments (timeout, retry, etc.)TimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<Void> publishDesignDocument(String name)
name
- name of the development design documentDesignDocumentNotFoundException
- (async) if the development namespace does not contain a document with the given nameTimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<Void> publishDesignDocument(String name, PublishDesignDocumentOptions options)
name
- name of the development design documentoptions
- additional optional arguments (timeout, retry, etc.)DesignDocumentNotFoundException
- (async) if the development namespace does not contain a document with the given nameTimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<Void> dropDesignDocument(String name, DesignDocumentNamespace namespace)
name
- name of the document to removenamespace
- namespace to remove it fromDesignDocumentNotFoundException
- (async) if the namespace does not contain a document with the given nameTimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Mono<Void> dropDesignDocument(String name, DesignDocumentNamespace namespace, DropDesignDocumentOptions options)
name
- name of the document to removenamespace
- namespace to remove it fromoptions
- additional optional arguments (timeout, retry, etc.)DesignDocumentNotFoundException
- (async) if the namespace does not contain a document with the given nameTimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Flux<DesignDocument> getAllDesignDocuments(DesignDocumentNamespace namespace)
namespace
- namespace to queryTimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).public Flux<DesignDocument> getAllDesignDocuments(DesignDocumentNamespace namespace, GetAllDesignDocumentsOptions options)
namespace
- namespace to queryoptions
- additional optional arguments (timeout, retry, etc.)TimeoutException
- (async) if the operation times out before getting a result.CouchbaseException
- (async) for all other error reasons (acts as a base type and catch-all).Copyright © 2020 Couchbase, Inc.. All rights reserved.