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

Method concurrencyLevel

output/java_guava/1.4.18/MapMaker.java:184–192  ·  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

182 */
183
184 @CanIgnoreReturnValue
185 public MapMaker concurrencyLevel(int concurrencyLevel) {
186 checkState(this.concurrencyLevel == UNSET_INT,
187 "concurrency level was already set to %s",
188 this.concurrencyLevel);
189 checkArgument(concurrencyLevel > 0);
190 this.concurrencyLevel = concurrencyLevel;
191 return this;
192 }
193
194 int getConcurrencyLevel() {
195 return (concurrencyLevel == UNSET_INT) ? DEFAULT_CONCURRENCY_LEVEL : concurrencyLevel;

Callers 3

toCacheBuilderMethod · 0.45
readMapMakerMethod · 0.45
recreateCacheBuilderMethod · 0.45

Calls 2

checkStateMethod · 0.45
checkArgumentMethod · 0.45

Tested by

no test coverage detected