public class DefaultBucketSettings extends Object implements BucketSettings
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultBucketSettings.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DefaultBucketSettings.Builder |
builder()
Provides a builder to build the bucket settings.
|
CompressionMode |
compressionMode()
The different compression modes for the bucket.
|
static DefaultBucketSettings |
create(String name)
Helper method to create bucket settings with a name and default settings.
|
Map<String,Object> |
customSettings()
A map of map of advanced settings that are not covered by the native methods of the object
but still need to be set when configuring a bucket.
|
EjectionMethod |
ejectionMethod()
The ejection method available for the bucket.
|
boolean |
enableFlush()
If flush is enabled.
|
boolean |
indexReplicas()
If replicas are indexed.
|
String |
name()
The name of the bucket.
|
String |
password()
The password of the bucket.
|
int |
port()
The optional proxy port.
|
int |
quota()
The bucket quota.
|
JsonObject |
raw()
A raw representation of the bucket settings when acquired from the server.
|
int |
replicas()
Number of replicas.
|
String |
toString() |
BucketType |
type()
The type of the bucket.
|
public static DefaultBucketSettings.Builder builder()
public static DefaultBucketSettings create(String name)
name - the name of the bucketpublic String name()
BucketSettingsname in interface BucketSettingspublic BucketType type()
BucketSettingstype in interface BucketSettingspublic int quota()
BucketSettingsquota in interface BucketSettingspublic int port()
BucketSettingsport in interface BucketSettingspublic String password()
BucketSettingspassword in interface BucketSettingspublic int replicas()
BucketSettingsreplicas in interface BucketSettingspublic boolean indexReplicas()
BucketSettingsindexReplicas in interface BucketSettingspublic boolean enableFlush()
BucketSettingsenableFlush in interface BucketSettingspublic CompressionMode compressionMode()
BucketSettingscompressionMode in interface BucketSettingspublic EjectionMethod ejectionMethod()
BucketSettingsejectionMethod in interface BucketSettingspublic Map<String,Object> customSettings()
BucketSettingsBucketSettings.raw()
instead.customSettings in interface BucketSettingspublic JsonObject raw()
BucketSettingsBucketSettings.customSettings().raw in interface BucketSettingsJsonObject if not applicable.Copyright © 2015 Couchbase, Inc.