Tabnine Logo
DynamicBooleanProperty.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.netflix.config.DynamicBooleanProperty
constructor

Best Java code snippets using com.netflix.config.DynamicBooleanProperty.<init> (Showing top 6 results out of 315)

origin: Netflix/zuul

@Override
public boolean shouldFilter(HttpRequestMessage request) {
  DynamicBooleanProperty debugFilterShutoff = new DynamicBooleanProperty(ZuulConstants.ZUUL_DEBUGFILTERS_DISABLED, false);
  if (debugFilterShutoff.get()) return false;
  if (isDisabled()) return false;
  String isSurgicalFilterRequest = request.getHeaders().getFirst(ZuulHeaders.X_ZUUL_SURGICAL_FILTER);
  // dont' apply filter if it was already applied
  boolean notAlreadyFiltered = !("true".equals(isSurgicalFilterRequest));
  return notAlreadyFiltered && patternMatches(request);
}
origin: Netflix/zuul

@Override
public boolean shouldFilter(HttpRequestMessage request) {
  DynamicBooleanProperty debugFilterShutoff = new DynamicBooleanProperty(ZuulConstants.ZUUL_DEBUGFILTERS_DISABLED, false);
  if (debugFilterShutoff.get()) return false;
  if (isDisabled()) return false;
  String isSurgicalFilterRequest = request.getHeaders().getFirst(ZuulHeaders.X_ZUUL_SURGICAL_FILTER);
  // dont' apply filter if it was already applied
  boolean notAlreadyFiltered = !("true".equals(isSurgicalFilterRequest));
  return notAlreadyFiltered && patternMatches(request);
}
origin: com.netflix.zuul/zuul-netflix

private FilterScriptManagerServlet getEndpointScriptManagerImplementation(ZuulFilterDAO dao) {
  return new FilterScriptManagerServlet(dao, new DynamicBooleanProperty("test.admin.enabled", true));
}
origin: com.netflix.archaius/archaius-core

/**
 * Create a new property whose value is a boolean and subject to change on-the-fly.
 *
 * @param propName               property name
 * @param defaultValue           default value if the property is not defined in underlying configuration
 * @param propertyChangeCallback a Runnable to be called when the property is changed
 */
public DynamicBooleanProperty getBooleanProperty(String propName, boolean defaultValue, final Runnable propertyChangeCallback) {
  checkAndWarn(propName);
  DynamicBooleanProperty property = new DynamicBooleanProperty(propName, defaultValue);
  addCallback(propertyChangeCallback, property);
  return property;
}
origin: com.netflix.archaius/archaius-legacy

/**
 * Create a new property whose value is a boolean and subject to change on-the-fly.
 *
 * @param propName               property name
 * @param defaultValue           default value if the property is not defined in underlying configuration
 * @param propertyChangeCallback a Runnable to be called when the property is changed
 */
public DynamicBooleanProperty getBooleanProperty(String propName, boolean defaultValue, final Runnable propertyChangeCallback) {
  checkAndWarn(propName);
  DynamicBooleanProperty property = new DynamicBooleanProperty(propName, defaultValue);
  addCallback(propertyChangeCallback, property);
  return property;
}
origin: com.netflix.zuul/zuul-core

@Override
public boolean shouldFilter(HttpRequestMessage request) {
  DynamicBooleanProperty debugFilterShutoff = new DynamicBooleanProperty(ZuulConstants.ZUUL_DEBUGFILTERS_DISABLED, false);
  if (debugFilterShutoff.get()) return false;
  if (isDisabled()) return false;
  String isSurgicalFilterRequest = request.getHeaders().getFirst(ZuulHeaders.X_ZUUL_SURGICAL_FILTER);
  // dont' apply filter if it was already applied
  boolean notAlreadyFiltered = !("true".equals(isSurgicalFilterRequest));
  return notAlreadyFiltered && patternMatches(request);
}
com.netflix.configDynamicBooleanProperty<init>

Popular methods of DynamicBooleanProperty

  • get
    Get the current value from the underlying DynamicProperty
  • addCallback

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • JTextField (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now