MCPcopy Create free account
hub / github.com/antlr/codebuff / concurrencyLevel

Method concurrencyLevel

output/java_guava/1.4.13/CacheBuilder.java:388–395  ·  view source on GitHub ↗

Guides the allowed concurrency among update operations. Used as a hint for internal sizing. The table is internally partitioned to try to permit the indicated number of concurrent updates without contention. Because assignment of entries to these partitions is not necessarily uniform, the actual con

(int concurrencyLevel)

Source from the content-addressed store, hash-verified

386
387
388 public CacheBuilder<K, V> concurrencyLevel(int concurrencyLevel) {
389 checkState(this.concurrencyLevel == UNSET_INT,
390 "concurrency level was already set to %s",
391 this.concurrencyLevel);
392 checkArgument(concurrencyLevel > 0);
393 this.concurrencyLevel = concurrencyLevel;
394 return this;
395 }
396
397 int getConcurrencyLevel() {
398 return (concurrencyLevel == UNSET_INT) ? DEFAULT_CONCURRENCY_LEVEL : concurrencyLevel;

Callers 2

toCacheBuilderMethod · 0.45
recreateCacheBuilderMethod · 0.45

Calls 2

checkStateMethod · 0.45
checkArgumentMethod · 0.45

Tested by

no test coverage detected