Quotas are used as a policy mechanism to prevent the consumption of excessive resources. They prevent Denial of Service (DOS) attacks that are either malicious or unintentional. Use this class when setting channel quotas on a custom channel.

ChannelPoolSettings specifies three quotas:

IdleTimeout to specify the maximum interval of time for which the channels in the pool can be idle before being closed.

LeaseTimeout to specify the interval of time after which a channel, when returned to the pool, is closed.