public ClientRegionFactory<K,V> setConcurrencyLevel(int concurrencyLevel) { this.attrsFactory.setConcurrencyLevel(concurrencyLevel); return this; }
public ClientRegionFactory<K,V> setConcurrencyLevel(int concurrencyLevel) { this.attrsFactory.setConcurrencyLevel(concurrencyLevel); return this; }
/** * Sets the concurrency level tof the next <code>RegionAttributes</code> * created. This value is used in initializing the map that holds the entries. * * @param concurrencyLevel * the concurrency level of the entry map * @return a reference to this RegionFactory object * @throws IllegalArgumentException * if concurrencyLevel is nonpositive * @see AttributesFactory#setConcurrencyLevel */ public RegionFactory<K,V> setConcurrencyLevel(int concurrencyLevel) { this.attrsFactory.setConcurrencyLevel(concurrencyLevel); return this; }
/** * Sets the concurrency level tof the next <code>RegionAttributes</code> * created. This value is used in initializing the map that holds the entries. * * @param concurrencyLevel * the concurrency level of the entry map * @return a reference to this RegionFactory object * @throws IllegalArgumentException * if concurrencyLevel is nonpositive * @see AttributesFactory#setConcurrencyLevel */ public RegionFactory<K,V> setConcurrencyLevel(int concurrencyLevel) { this.attrsFactory.setConcurrencyLevel(concurrencyLevel); return this; }
final public void concurrencyLevelDefinition(AttributesFactory afact) throws ParseException, StandardException {int level; jj_consume_token(CONCURRENCY); jj_consume_token(LEVEL); level = simpleValueSpecification_int(); afact.setConcurrencyLevel(level); }
final public void concurrencyLevelDefinition(AttributesFactory afact) throws ParseException, StandardException {int level; jj_consume_token(CONCURRENCY); jj_consume_token(LEVEL); level = simpleValueSpecification_int(); afact.setConcurrencyLevel(level); }
final public void concurrencyLevelDefinition(AttributesFactory afact) throws ParseException, StandardException {int level; jj_consume_token(CONCURRENCY); jj_consume_token(LEVEL); level = simpleValueSpecification_int(); afact.setConcurrencyLevel(level); }
value = value.replace('-', '_'); if (attr.equals(CONCURRENCY_LEVEL)) { factory.setConcurrencyLevel(Integer.parseInt(value)); } else if (attr.equals(DATA_POLICY)) { if (value.equalsIgnoreCase(DataPolicy.EMPTY.toString())) {
/** Test to make sure region attributes take */ public void testRegionAttributes() throws CacheException { // @todo for now just test concurrencyLevel, add tests for the rest AttributesFactory factory = new AttributesFactory(); factory.setConcurrencyLevel(60); factory.setConcurrencyChecksEnabled(true); factory.setScope(Scope.DISTRIBUTED_ACK); RegionAttributes attrs = factory.create(); String name = getUniqueName(); Region region = createRegion(name, attrs); assertEquals(60, region.getAttributes().getConcurrencyLevel()); assertTrue("expected concurrencyChecksEnabled to be true", region.getAttributes().getConcurrencyChecksEnabled()); }
f.setConcurrencyLevel(rd.getConcurrencyLevel().intValue());
factory.setConcurrencyLevel(concurrencyLevel.intValue()); if (keyConstraint != null) factory.setKeyConstraint(keyConstraint);
f.setConcurrencyLevel(this.getConcurrencyLevel().intValue()); f.setCustomEntryIdleTimeout(this.getCustomEntryIdleTimeoutInstance()); f.setCustomEntryTimeToLive(this.getCustomEntryTimeToLiveInstance());
factory.setConcurrencyLevel(diskProps.getConcurrencyLevel()); factory.setInitialCapacity(diskProps.getInitialCapacity()); factory.setLoadFactor(diskProps.getLoadFactor());
public void run2() throws CacheException { Cache cache = getCache(); AttributesFactory factory = new AttributesFactory(); factory.setCacheListener(new CacheListener2()); factory.setCacheLoader(new CacheLoader2()); factory.setCacheWriter(new CacheWriter2()); factory.setConcurrencyLevel(concurrencyLevel); factory.setDiskDirs(new File[] { diskDir }); factory.setDiskWriteAttributes(dwa); factory.setStatisticsEnabled(statisticsEnabled); factory.setEntryIdleTimeout(entryIdle); factory.setEntryTimeToLive(entryTtl); factory.setInitialCapacity(initialCapacity); factory.setKeyConstraint(String.class); factory.setLoadFactor(loadFactor); factory.setDataPolicy(dataPolicy); factory.setRegionIdleTimeout(regionIdle); factory.setRegionTimeToLive(regionTtl); factory.setScope(scope); factory.setEarlyAck(false); MembershipAttributes membershipAttributes = new MembershipAttributes(new String[] {"A"}, LossAction.LIMITED_ACCESS, ResumptionAction.NONE); factory.setMembershipAttributes(membershipAttributes); RegionAttributes attrs = factory.create(); Region region = cache.createRegion(name, attrs); region.setUserAttribute(userAttribute); } });
pafact.setRecoveryDelay(pa.getRecoveryDelay()); afact.setPartitionAttributes(pafact.create()); afact.setConcurrencyLevel(ra.getConcurrencyLevel()); afact.setInitialCapacity(ra.getInitialCapacity()); afact.setConcurrencyChecksEnabled(ra.getConcurrencyChecksEnabled());
pafact.setRecoveryDelay(pa.getRecoveryDelay()); afact.setPartitionAttributes(pafact.create()); afact.setConcurrencyLevel(ra.getConcurrencyLevel()); afact.setInitialCapacity(ra.getInitialCapacity()); afact.setConcurrencyChecksEnabled(ra.getConcurrencyChecksEnabled());
pafact.setRecoveryDelay(pa.getRecoveryDelay()); afact.setPartitionAttributes(pafact.create()); afact.setConcurrencyLevel(ra.getConcurrencyLevel()); afact.setInitialCapacity(ra.getInitialCapacity()); afact.setConcurrencyChecksEnabled(ra.getConcurrencyChecksEnabled());