@Stability.Volatile public class ReactiveCollectionManager extends Object
ReactiveCollectionManager
provides APIs to manage bucket collections and scopes.Constructor and Description |
---|
ReactiveCollectionManager(AsyncCollectionManager async) |
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
createCollection(CollectionSpec collectionSpec)
Creates a collection if it does not already exist.
|
Mono<Void> |
createCollection(CollectionSpec collectionSpec,
CreateCollectionOptions options)
Creates a collection if it does not already exist.
|
Mono<Void> |
createScope(String scopeName)
Creates a scope if it does not already exist.
|
Mono<Void> |
createScope(String scopeName,
CreateScopeOptions options)
Creates a scope if it does not already exist.
|
Mono<Void> |
dropCollection(CollectionSpec collectionSpec)
Drops a collection if it exists.
|
Mono<Void> |
dropCollection(CollectionSpec collectionSpec,
DropCollectionOptions options)
Drops a collection if it exists.
|
Mono<Void> |
dropScope(String scopeName)
Drops a scope if it exists.
|
Mono<Void> |
dropScope(String scopeName,
DropScopeOptions options)
Drops a scope if it exists.
|
Flux<ScopeSpec> |
getAllScopes()
Returns all scopes in this bucket.
|
Flux<ScopeSpec> |
getAllScopes(GetAllScopesOptions options)
Returns all scopes in this bucket.
|
Mono<ScopeSpec> |
getScope(String scopeName)
Returns the scope if it exists.
|
Mono<ScopeSpec> |
getScope(String scopeName,
GetScopeOptions options)
Returns the scope if it exists.
|
public ReactiveCollectionManager(AsyncCollectionManager async)
public Mono<Void> createCollection(CollectionSpec collectionSpec, CreateCollectionOptions options)
collectionSpec
- the collection spec that contains the properties of the collection.CollectionExistsException
- (async) if the collection already existsScopeNotFoundException
- (async) if the specified scope does not exist.public Mono<Void> dropCollection(CollectionSpec collectionSpec, DropCollectionOptions options)
collectionSpec
- the collection spec that contains the properties of the collection.CollectionNotFoundException
- (async) if the collection did not exist.ScopeNotFoundException
- (async) if the specified scope does not exist.public Mono<Void> createScope(String scopeName, CreateScopeOptions options)
scopeName
- the name of the scope to create.ScopeExistsException
- (async) if the scope already exists.public Mono<Void> dropScope(String scopeName, DropScopeOptions options)
scopeName
- the name of the scope to drop.ScopeNotFoundException
- (async) if the scope did not exist.public Mono<ScopeSpec> getScope(String scopeName, GetScopeOptions options)
scopeName
- the name of the scope.ScopeNotFoundException
- (async) if scope does not exist.public Flux<ScopeSpec> getAllScopes(GetAllScopesOptions options)
public Mono<Void> createCollection(CollectionSpec collectionSpec)
collectionSpec
- the collection spec that contains the properties of the collection.CollectionExistsException
- (async) if the collection already existsScopeNotFoundException
- (async) if the specified scope does not exist.public Mono<Void> dropCollection(CollectionSpec collectionSpec)
collectionSpec
- the collection spec that contains the properties of the collection.CollectionNotFoundException
- (async) if the collection did not exist.ScopeNotFoundException
- (async) if the specified scope does not exist.public Mono<Void> createScope(String scopeName)
scopeName
- the name of the scope to create.ScopeExistsException
- (async) if the scope already exists.public Mono<Void> dropScope(String scopeName)
scopeName
- the name of the scope to drop.ScopeNotFoundException
- (async) if the scope did not exist.public Mono<ScopeSpec> getScope(String scopeName)
scopeName
- the name of the scope.ScopeNotFoundException
- (async) if scope does not exist.Copyright © 2020 Couchbase, Inc.. All rights reserved.