Class GuardrailsConfigProvider.Default
java.lang.Object
org.apache.cassandra.db.guardrails.GuardrailsConfigProvider.Default
- All Implemented Interfaces:
GuardrailsConfigProvider
- Enclosing interface:
- GuardrailsConfigProvider
public static class GuardrailsConfigProvider.Default
extends Object
implements GuardrailsConfigProvider
Default implementation of
GuardrailsConfigProvider that always returns the GuardrailsConfig
parsed from cassandra.yaml, independently of the ClientState.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.db.guardrails.GuardrailsConfigProvider
GuardrailsConfigProvider.Default -
Field Summary
Fields inherited from interface org.apache.cassandra.db.guardrails.GuardrailsConfigProvider
CUSTOM_IMPLEMENTATION_PROPERTY, instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreate(ClientState state) Returns theGuardrailsConfigto be used for the specifiedClientState.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
getOrCreate
Description copied from interface:GuardrailsConfigProviderReturns theGuardrailsConfigto be used for the specifiedClientState.- Specified by:
getOrCreatein interfaceGuardrailsConfigProvider- Parameters:
state- a client state, maybenullif the guardrails check for which we are getting the config is for a background process that is not associated to a user query.- Returns:
- the configuration to be used for
state
-