Class CoreBucketSettingsJson
- java.lang.Object
-
- com.couchbase.client.core.classic.manager.CoreBucketSettingsJson
-
- All Implemented Interfaces:
CoreBucketSettings
public class CoreBucketSettingsJson extends Object implements CoreBucketSettings
Helper class for working with bucket JSON.
-
-
Constructor Summary
Constructors Constructor Description CoreBucketSettingsJson(String name, Map<String,String> controllers, Map<String,Long> quota, int numReplicas, boolean replicaIndex, int maxTTL, CoreCompressionMode compressionMode, BucketType bucketType, CoreConflictResolutionType conflictResolutionType, CoreEvictionPolicyType evictionPolicy, String durabilityMinLevel, CoreStorageBackend storageBackend)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketType
bucketType()
CoreCompressionMode
compressionMode()
CoreConflictResolutionType
conflictResolutionType()
CoreEvictionPolicyType
evictionPolicy()
Boolean
flushEnabled()
Duration
maxExpiry()
DurabilityLevel
minimumDurabilityLevel()
String
name()
Integer
numReplicas()
long
ramQuotaMB()
static long
ramQuotaToMB(long ramQuotaBytes)
Boolean
replicaIndexes()
CoreStorageBackend
storageBackend()
String
toString()
-
-
-
Constructor Detail
-
CoreBucketSettingsJson
@Internal public CoreBucketSettingsJson(String name, Map<String,String> controllers, Map<String,Long> quota, int numReplicas, boolean replicaIndex, int maxTTL, CoreCompressionMode compressionMode, BucketType bucketType, CoreConflictResolutionType conflictResolutionType, CoreEvictionPolicyType evictionPolicy, String durabilityMinLevel, CoreStorageBackend storageBackend)
-
-
Method Detail
-
ramQuotaToMB
public static long ramQuotaToMB(long ramQuotaBytes)
-
name
public String name()
- Specified by:
name
in interfaceCoreBucketSettings
-
flushEnabled
public Boolean flushEnabled()
- Specified by:
flushEnabled
in interfaceCoreBucketSettings
-
ramQuotaMB
public long ramQuotaMB()
- Specified by:
ramQuotaMB
in interfaceCoreBucketSettings
-
numReplicas
public Integer numReplicas()
- Specified by:
numReplicas
in interfaceCoreBucketSettings
-
replicaIndexes
public Boolean replicaIndexes()
- Specified by:
replicaIndexes
in interfaceCoreBucketSettings
-
minimumDurabilityLevel
public DurabilityLevel minimumDurabilityLevel()
- Specified by:
minimumDurabilityLevel
in interfaceCoreBucketSettings
-
maxExpiry
public Duration maxExpiry()
- Specified by:
maxExpiry
in interfaceCoreBucketSettings
-
compressionMode
public CoreCompressionMode compressionMode()
- Specified by:
compressionMode
in interfaceCoreBucketSettings
-
bucketType
public BucketType bucketType()
- Specified by:
bucketType
in interfaceCoreBucketSettings
-
conflictResolutionType
public CoreConflictResolutionType conflictResolutionType()
-
storageBackend
public CoreStorageBackend storageBackend()
- Specified by:
storageBackend
in interfaceCoreBucketSettings
-
evictionPolicy
public CoreEvictionPolicyType evictionPolicy()
- Specified by:
evictionPolicy
in interfaceCoreBucketSettings
-
-