Class BucketSettings
java.lang.Object
com.couchbase.client.java.manager.bucket.BucketSettings
public class BucketSettings extends Object
-
Constructor Summary
Constructors Constructor Description BucketSettings(String name, Map<String,String> controllers, Map<String,Long> quota, int numReplicas, boolean replicaIndex, int maxTTL, CompressionMode compressionMode, BucketType bucketType, ConflictResolutionType conflictResolutionType, EvictionPolicyType evictionPolicy, String durabilityMinLevel)
-
Method Summary
-
Constructor Details
-
BucketSettings
public BucketSettings(String name, Map<String,String> controllers, Map<String,Long> quota, int numReplicas, boolean replicaIndex, int maxTTL, CompressionMode compressionMode, BucketType bucketType, ConflictResolutionType conflictResolutionType, EvictionPolicyType evictionPolicy, String durabilityMinLevel)
-
-
Method Details
-
create
-
name
-
flushEnabled
public boolean flushEnabled() -
ramQuotaMB
public long ramQuotaMB() -
numReplicas
public int numReplicas() -
replicaIndexes
public boolean replicaIndexes() -
minimumDurabilityLevel
Returns the minimum durability level set for the bucket. Note that if the bucket does not support it, and by default, it is set toDurabilityLevel.NONE
.- Returns:
- the minimum durability level for that bucket.
-
maxTTL
Deprecated.please usemaxExpiry()
instead.Returns the maximum expiry (time-to-live) for all documents in the bucket in seconds. -
maxExpiry
Returns the maximum expiry (time-to-live) for all documents in the bucket. -
compressionMode
-
bucketType
-
conflictResolutionType
-
ejectionPolicy
Deprecated.Please useevictionPolicy
instead. -
evictionPolicy
-
flushEnabled
-
ramQuotaMB
-
numReplicas
-
replicaIndexes
-
maxTTL
Deprecated.please usemaxExpiry(Duration)
instead.Specifies the maximum expiry (time-to-live) for all documents in the bucket in seconds.- Parameters:
maxTTL
- the maximum expiry in seconds.- Returns:
- this
BucketSettings
for chaining purposes.
-
maxExpiry
Specifies the maximum expiry (time-to-live) for all documents in the bucket.- Parameters:
maxExpiry
- the maximum expiry.- Returns:
- this
BucketSettings
for chaining purposes.
-
compressionMode
-
bucketType
-
conflictResolutionType
-
ejectionPolicy
Deprecated.Please useevictionPolicy
instead.- Parameters:
ejectionPolicy
- (nullable) policy to use, or null for default policy for the bucket type.
-
evictionPolicy
- Parameters:
evictionPolicy
- (nullable) policy to use, or null for default policy for the bucket type.
-
minimumDurabilityLevel
Allows to provide a custom minimumDurabilityLevel
for this bucket.- Parameters:
durabilityLevel
- the minimum level to use for all KV operations.- Returns:
- this
BucketSettings
object for chainability.
-
healthy
-
toString
-
evictionPolicy
instead.