Package com.couchbase.client.java
Class Scope
- java.lang.Object
-
- com.couchbase.client.java.Scope
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncScopeasync()Returns the underlying async scope.StringbucketName()The name of the bucket this scope is attached to.Collectioncollection(String collectionName)Opens a collection for this scope with an explicit name.Corecore()Provides access to the underlyingCore.ClusterEnvironmentenvironment()Provides access to the configuredClusterEnvironmentfor this scope.Stringname()The name of the scope.
-
-
-
Method Detail
-
name
public String name()
The name of the scope.- Returns:
- the name of the scope.
-
bucketName
public String bucketName()
The name of the bucket this scope is attached to.
-
async
public AsyncScope async()
Returns the underlying async scope.
-
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 configuredClusterEnvironmentfor this scope.
-
collection
@Volatile public Collection collection(String collectionName)
Opens a collection for this scope with an explicit name.- Parameters:
collectionName- the collection name.- Returns:
- the requested collection if successful.
-
-