public static class GuardrailsConfigProvider.Default extends java.lang.Object implements GuardrailsConfigProvider
GuardrailsConfigProvider
that always returns the GuardrailsConfig
parsed from cassandra.yaml
, independently of the ClientState
.GuardrailsConfigProvider.Default
CUSTOM_IMPLEMENTATION_PROPERTY, instance
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
GuardrailsConfig |
getOrCreate(ClientState state)
Returns the
GuardrailsConfig to be used for the specified ClientState . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
public GuardrailsConfig getOrCreate(@Nullable ClientState state)
GuardrailsConfigProvider
GuardrailsConfig
to be used for the specified ClientState
.getOrCreate
in interface GuardrailsConfigProvider
state
- a client state, maybe null
if the guardrails check for which we are getting the config is
for a background process that is not associated to a user query.state
Copyright © 2009- The Apache Software Foundation