getThreadFactory

setConcurrencyLimit

public void setConcurrencyLimit(int concurrencyLimit)

Set the maximum number of parallel accesses allowed.
-1 indicates no concurrency limit at all.

In principle, this limit can be changed at runtime,
although it is generally designed as a config time setting.
NOTE: Do not switch between -1 and any concrete limit at runtime,
as this will lead to inconsistent concurrency counts: A limit
of -1 effectively turns off concurrency counting completely.