/** * Sets the kind of interest this region has in events occuring in other caches that define the * region by the same name. * * @param sa the attributes decribing the interest * @return a reference to this RegionFactory object * @see AttributesFactory#setSubscriptionAttributes(SubscriptionAttributes) */ public RegionFactory<K, V> setSubscriptionAttributes(SubscriptionAttributes sa) { this.attrsFactory.setSubscriptionAttributes(sa); return this; }
private void initAttributeFactoryDefaults() { this.attrsFactory.setScope(Scope.LOCAL); this.attrsFactory.setSubscriptionAttributes(new SubscriptionAttributes(InterestPolicy.ALL)); }
private static RegionAttributes createClientDefaults() { AttributesFactory af = new AttributesFactory(); af.setScope(Scope.LOCAL); // af.setIgnoreJTA(true); In 6.6 and later releases client regions support JTA af.setSubscriptionAttributes(new SubscriptionAttributes(InterestPolicy.ALL)); return af.create(); }
setSubscriptionAttributes(new SubscriptionAttributes(InterestPolicy.ALL));