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 java.lang.Object implements GuardrailsConfigProvider
Default implementation ofGuardrailsConfigProviderthat always returns theGuardrailsConfigparsed fromcassandra.yaml, independently of theClientState.
-
-
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 Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuardrailsConfiggetOrCreate(ClientState state)Returns theGuardrailsConfigto be used for the specifiedClientState.
-
-
-
Method Detail
-
getOrCreate
public GuardrailsConfig getOrCreate(@Nullable ClientState state)
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
-
-