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() |
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.
|
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 String name()
BucketSettingsThe name of the bucket.
name in interface BucketSettingspublic BucketType type()
BucketSettingsThe type of the bucket.
type in interface BucketSettingspublic int quota()
BucketSettingsThe bucket quota.
quota in interface BucketSettingspublic int port()
BucketSettingsThe optional proxy port.
port in interface BucketSettingspublic String password()
BucketSettingsThe password of the bucket.
password in interface BucketSettingspublic int replicas()
BucketSettingsNumber of replicas.
replicas in interface BucketSettingspublic boolean indexReplicas()
BucketSettingsIf replicas are indexed.
indexReplicas in interface BucketSettingspublic boolean enableFlush()
BucketSettingsIf flush is enabled.
enableFlush in interface BucketSettingspublic Map<String,Object> customSettings()
BucketSettingsA 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.
To get a full raw representation of an existing bucket’s configuration, see BucketSettings.raw() instead.
customSettings in interface BucketSettingspublic JsonObject raw()
BucketSettingsA raw representation of the bucket settings when acquired from the server. This can be used to get any missing information about the bucket that isn’t covered by native methods.
To configure a bucket and add settings that are not covered by native methods either, you should instead see BucketSettings.customSettings().
raw in interface BucketSettingsJsonObject if not applicable.Copyright © 2015 Couchbase, Inc.