Package | Description |
---|---|
com.couchbase.client.java.manager.bucket |
APIs related to bucket management.
|
Modifier and Type | Method and Description |
---|---|
BucketSettings |
BucketSettings.bucketType(BucketType bucketType)
Configures the
BucketType . |
BucketSettings |
BucketSettings.compressionMode(CompressionMode compressionMode)
Sets the compression mode on the bucket.
|
BucketSettings |
BucketSettings.conflictResolutionType(ConflictResolutionType conflictResolutionType)
Configures the conflict resolution mode for the bucket.
|
static BucketSettings |
BucketSettings.create(String name)
Creates
BucketSettings with the bucket name and all default properties. |
BucketSettings |
BucketSettings.ejectionPolicy(EjectionPolicy ejectionPolicy)
Deprecated.
Please use
evictionPolicy instead. |
BucketSettings |
BucketSettings.evictionPolicy(EvictionPolicyType evictionPolicy)
Allows to configure a custom
EvictionPolicyType as the eviction policy. |
BucketSettings |
BucketSettings.flushEnabled(boolean flushEnabled)
Allows enabling flush on the bucket.
|
BucketSettings |
BucketManager.getBucket(String bucketName)
Loads the properties of a bucket from the cluster.
|
BucketSettings |
BucketManager.getBucket(String bucketName,
GetBucketOptions options)
Loads the properties of a bucket from the cluster with custom options.
|
BucketSettings |
BucketSettings.historyRetentionBytes(Long historyRetentionBytes)
Configures historyRetentionBytes for this bucket.
|
BucketSettings |
BucketSettings.historyRetentionCollectionDefault(Boolean historyRetentionCollectionDefault)
Configures historyRetentionCollectionDefault for this bucket.
|
BucketSettings |
BucketSettings.historyRetentionDuration(Duration historyRetentionDuration)
Configures historyRetentionDuration for this bucket.
|
BucketSettings |
BucketSettings.maxExpiry(Duration maxExpiry)
Specifies the maximum expiry (time-to-live) for all documents in the bucket.
|
BucketSettings |
BucketSettings.maxTTL(int maxTTL)
Deprecated.
please use
maxExpiry(Duration) instead. |
BucketSettings |
BucketSettings.minimumDurabilityLevel(com.couchbase.client.core.msg.kv.DurabilityLevel durabilityLevel)
Configures a custom minimum
DurabilityLevel for this bucket. |
BucketSettings |
BucketSettings.numReplicas(int numReplicas)
Sets the number of replica copies for the bucket.
|
BucketSettings |
BucketSettings.ramQuotaMB(long ramQuotaMB)
Sets the ram quota in MB for this bucket.
|
BucketSettings |
BucketSettings.replicaIndexes(boolean replicaIndexes)
Sets the number of replica indexes on the bucket.
|
BucketSettings |
BucketSettings.storageBackend(StorageBackend storageBackend)
Configures a
StorageBackend for this bucket. |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Map<String,BucketSettings>> |
AsyncBucketManager.getAllBuckets()
Loads the properties of all buckets the current user has access to from the cluster.
|
Map<String,BucketSettings> |
BucketManager.getAllBuckets()
Loads the properties of all buckets the current user has access to from the cluster.
|
Mono<Map<String,BucketSettings>> |
ReactiveBucketManager.getAllBuckets()
Loads the properties of all buckets the current user has access to from the cluster.
|
CompletableFuture<Map<String,BucketSettings>> |
AsyncBucketManager.getAllBuckets(GetAllBucketOptions options)
Loads the properties of all buckets the current user has access to from the cluster.
|
Map<String,BucketSettings> |
BucketManager.getAllBuckets(GetAllBucketOptions options)
Loads the properties of all buckets the current user has access to from the cluster.
|
Mono<Map<String,BucketSettings>> |
ReactiveBucketManager.getAllBuckets(GetAllBucketOptions options)
Loads the properties of all buckets the current user has access to from the cluster.
|
CompletableFuture<BucketSettings> |
AsyncBucketManager.getBucket(String bucketName)
Loads the properties of a bucket from the cluster.
|
Mono<BucketSettings> |
ReactiveBucketManager.getBucket(String bucketName)
Loads the properties of a bucket from the cluster.
|
CompletableFuture<BucketSettings> |
AsyncBucketManager.getBucket(String bucketName,
GetBucketOptions options)
Loads the properties of a bucket from the cluster with custom options.
|
Mono<BucketSettings> |
ReactiveBucketManager.getBucket(String bucketName,
GetBucketOptions options)
Loads the properties of a bucket from the cluster with custom options.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
AsyncBucketManager.createBucket(BucketSettings settings)
Creates a new bucket on the server.
|
void |
BucketManager.createBucket(BucketSettings settings)
Creates a new bucket on the server.
|
Mono<Void> |
ReactiveBucketManager.createBucket(BucketSettings settings)
Creates a new bucket on the server.
|
CompletableFuture<Void> |
AsyncBucketManager.createBucket(BucketSettings settings,
CreateBucketOptions options)
Creates a new bucket on the server with custom options.
|
void |
BucketManager.createBucket(BucketSettings settings,
CreateBucketOptions options)
Creates a new bucket on the server with custom options.
|
Mono<Void> |
ReactiveBucketManager.createBucket(BucketSettings settings,
CreateBucketOptions options)
Creates a new bucket on the server with custom options.
|
CompletableFuture<Void> |
AsyncBucketManager.updateBucket(BucketSettings settings)
Updates the settings of a bucket which already exists.
|
void |
BucketManager.updateBucket(BucketSettings settings)
Updates the settings of a bucket which already exists.
|
Mono<Void> |
ReactiveBucketManager.updateBucket(BucketSettings settings)
Updates the settings of a bucket which already exists.
|
CompletableFuture<Void> |
AsyncBucketManager.updateBucket(BucketSettings settings,
UpdateBucketOptions options)
Updates the settings of a bucket which already exists with custom options.
|
void |
BucketManager.updateBucket(BucketSettings settings,
UpdateBucketOptions options)
Updates the settings of a bucket which already exists with custom options.
|
Mono<Void> |
ReactiveBucketManager.updateBucket(BucketSettings settings,
UpdateBucketOptions options)
Updates the settings of a bucket which already exists with custom options.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.