Package com.couchbase.client.java
Class AsyncScope
- java.lang.Object
-
- com.couchbase.client.java.AsyncScope
-
public class AsyncScope extends Object
The scope identifies a group of collections and allows high application density as a result.If no scope is explicitly provided, the default scope is used.
- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bucketName()
The name of the bucket this scope is attached to.CompletableFuture<AsyncCollection>
collection(String name)
Opens a collection for this scope with an explicit name.Core
core()
Provides access to the underlyingCore
.ClusterEnvironment
environment()
Provides access to the configuredClusterEnvironment
for this scope.String
name()
The name of the scope.
-
-
-
Method Detail
-
name
public String name()
The name of the scope.
-
bucketName
public String bucketName()
The name of the bucket this scope is attached to.
-
core
@Volatile public Core core()
Provides access to the underlyingCore
.This is advanced API, use with care!
-
environment
public ClusterEnvironment environment()
Provides access to the configuredClusterEnvironment
for this scope.
-
collection
@Volatile public CompletableFuture<AsyncCollection> collection(String name)
Opens a collection for this scope with an explicit name.- Parameters:
name
- the collection name.- Returns:
- the requested collection if successful.
-
-