Package com.couchbase.client.core.config
Class ProposedBucketConfigContext
- java.lang.Object
-
- com.couchbase.client.core.config.ProposedBucketConfigContext
-
public class ProposedBucketConfigContext extends Object
This context keeps together a bunch of related information needed to turn a raw config into a parsed one.- Since:
- 1.5.8
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description ProposedBucketConfigContext(String bucketName, String config, String origin)
Creates a new proposed bucket config context.ProposedBucketConfigContext(String bucketName, String config, String origin, boolean forcesOverride)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bucketName()
String
config()
boolean
equals(Object o)
ProposedBucketConfigContext
forceOverride()
boolean
forcesOverride()
int
hashCode()
String
origin()
Returns the origin, might be null.String
toString()
-
-
-
Constructor Detail
-
ProposedBucketConfigContext
public ProposedBucketConfigContext(String bucketName, String config, String origin)
Creates a new proposed bucket config context.- Parameters:
bucketName
- the name of the bucket, must not be null.config
- the raw config, must not be null.origin
- the origin of the config, can be null.
-
-
Method Detail
-
bucketName
public String bucketName()
-
config
public String config()
-
origin
public String origin()
Returns the origin, might be null.- Returns:
- the origin if set, null otherwise.
-
forcesOverride
public boolean forcesOverride()
-
forceOverride
public ProposedBucketConfigContext forceOverride()
-
-