Class ProposedGlobalConfigContext

java.lang.Object
com.couchbase.client.core.config.ProposedGlobalConfigContext

public class ProposedGlobalConfigContext extends Object
This context keeps together a bunch of related information needed to turn a raw config into a parsed one.
Since:
2.0.0
Author:
Michael Nitschinger
  • Constructor Details

    • ProposedGlobalConfigContext

      public ProposedGlobalConfigContext(String config, String origin)
      Creates a new proposed bucket config context.
      Parameters:
      config - the raw config, must not be null.
      origin - the origin of the config, can be null.
    • ProposedGlobalConfigContext

      public ProposedGlobalConfigContext(String config, String origin, boolean forcesOverride)
  • Method Details

    • 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 ProposedGlobalConfigContext forceOverride()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object