/** * Sets whether or not conflation is enabled for sending messages * to async peers. * @param value true to enable async conflation * @return a reference to this RegionFactory object * @see AttributesFactory#setEnableAsyncConflation(boolean) */ public RegionFactory<K,V> setEnableAsyncConflation(boolean value) { this.attrsFactory.setEnableAsyncConflation(value); return this; }
/** * Sets whether or not conflation is enabled for sending messages * to async peers. * @param value true to enable async conflation * @return a reference to this RegionFactory object * @see AttributesFactory#setEnableAsyncConflation(boolean) */ public RegionFactory<K,V> setEnableAsyncConflation(boolean value) { this.attrsFactory.setEnableAsyncConflation(value); return this; }
factory.setEnableAsyncConflation(enableAsyncConflation.booleanValue()); RegionAttributes attrs = factory.create(); cache.createRegion(REGION_NAME, attrs);
/** * Create a region named AckRegion with ACK scope */ protected Region createAckRegion(boolean mirror, boolean conflate) throws CacheException { final AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); if (mirror) { factory.setDataPolicy(DataPolicy.REPLICATE); } if (conflate) { factory.setEnableAsyncConflation(true); } final Region r = createRootRegion("AckRegion", factory.create()); return r; } /**
} else { factory.setEnableBridgeConflation(enableBridgeConflation); factory.setEnableAsyncConflation(enableBridgeConflation);
factory.setEarlyAck(Boolean.parseBoolean(value)); } else if (attr.equals(ENABLE_ASYNC_CONFLATION)) { factory.setEnableAsyncConflation(Boolean.parseBoolean(value)); } else if (attr.equals(ENABLE_GATEWAY)) { factory.setEnableGateway(Boolean.parseBoolean(value));
final AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_NO_ACK); factory.setEnableAsyncConflation(true); final Region r = createRootRegion("slowrec", factory.create()); final Region ar = createAckRegion(false, true);
final AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_NO_ACK); factory.setEnableAsyncConflation(true); final Region r = createRootRegion("slowrec", factory.create()); final DMStats stats = getSystem().getDistributionManager().getStats();
f.setEnableAsyncConflation(rd.getEnableAsyncConflation().booleanValue());
factory.setPersistBackup(persistBackup.booleanValue()); if (asyncConflation != null) factory.setEnableAsyncConflation(asyncConflation.booleanValue()); if (isSynchronous != null) { factory.setDiskWriteAttributes(getDiskWriteAttributes());
private void doTestPartialMessage() throws Exception { final AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_NO_ACK); factory.setEnableAsyncConflation(true); final Region r = createRootRegion("slowrec", factory.create()); final DM dm = getSystem().getDistributionManager();
f.setEnableAsyncConflation(this.getEnableAsyncConflation().booleanValue()); f.setEnableGateway(this.getEnableGateway().booleanValue()); f.setEnableOffHeapMemory(this.getEnableOffHeapMemory().booleanValue());
private void doTestMultipleRegionConflation() throws Exception { final AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_NO_ACK); factory.setEnableAsyncConflation(true); final Region r1 = createRootRegion("slowrec1", factory.create()); final Region r2 = createRootRegion("slowrec2", factory.create());
final AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_NO_ACK); factory.setEnableAsyncConflation(true); final Region r = createRootRegion("slowrec", factory.create()); factory.setEnableAsyncConflation(false); final Region noConflate = createRootRegion("noConflate", factory.create()); final DMStats stats = getSystem().getDistributionManager().getStats();