This is something that used to work with GT 14.0, but no longer works when I upgraded to GT 21.2.
I'm unsure how to provide example code that doesn't release protected host names or connection IDs, but I'll do my best:
Creating a config as:
Does not have the desired effect of limiting queries.
I have verified that the code definitely doesn't seem to do what I expect it to:
Only sets it for the query.
Requires the caller set the max features.
I think the easiest approach here is to set all of the parameters which can be set based off of the config in the GetFeatureRequest constructor, since that will propagate down correctly, and yet still allow for overrides.