Currently agroal has background connection validation and foreground connection validation. However, foreground connection validation is only possible with an idle timeout, that always must be a positive number. It should be possible to be able te set connection validation to "always", so that every connection is validated before it is leased/borrowed.
The current 'workaround' is to set idleValidationTimeout to the lowest possible idle timeout of 1ms. It would be nicer to be able to set it to just always perform validation and not check the idle timeout whatsoever.