public ClientRegionFactory<K,V> setLoadFactor(float loadFactor) { this.attrsFactory.setLoadFactor(loadFactor); return this; }
public ClientRegionFactory<K,V> setLoadFactor(float loadFactor) { this.attrsFactory.setLoadFactor(loadFactor); return this; }
/** * Sets the entry load factor for the next <code>RegionAttributes</code> * created. This value is used in initializing the map that holds the entries. * * @param loadFactor * the load factor of the entry map * @return a reference to this RegionFactory object * @throws IllegalArgumentException * if loadFactor is nonpositive * @see java.util.HashMap * @see AttributesFactory#setLoadFactor */ public RegionFactory<K,V> setLoadFactor(float loadFactor) { this.attrsFactory.setLoadFactor(loadFactor); return this; }
/** * Sets the entry load factor for the next <code>RegionAttributes</code> * created. This value is used in initializing the map that holds the entries. * * @param loadFactor * the load factor of the entry map * @return a reference to this RegionFactory object * @throws IllegalArgumentException * if loadFactor is nonpositive * @see java.util.HashMap * @see AttributesFactory#setLoadFactor */ public RegionFactory<K,V> setLoadFactor(float loadFactor) { this.attrsFactory.setLoadFactor(loadFactor); return this; }
factory.setLockGrantor(Boolean.parseBoolean(value)); } else if (attr.equals(LOAD_FACTOR)) { factory.setLoadFactor(Float.parseFloat(value)); } else if (attr.equals(MULTICAST_ENABLED)) { factory.setMulticastEnabled(Boolean.parseBoolean(value));
f.setLoadFactor(rd.getLoadFactor().floatValue());
factory.setValueConstraint(valueConstraint); if (loadFactor != null) factory.setLoadFactor(loadFactor.floatValue()); if (statisticsEnabled != null) factory.setStatisticsEnabled(statisticsEnabled.booleanValue());
f.setSubscriptionAttributes(this.getInterestPolicy()); f.setKeyConstraint(this.getKeyConstraint()); f.setLoadFactor(this.getLoadFactor().floatValue()); f.setLockGrantor(this.getLockGrantor().booleanValue()); f.setMembershipAttributes(this.getMembershipAttributes());
factory.setLoadFactor(diskProps.getLoadFactor()); factory.setStatisticsEnabled(diskProps.getStatisticsEnabled());
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); } });