SGF-193 -added enable-concurrency-checks to namespace
This commit is contained in:
@@ -603,6 +603,14 @@ clone of the value and then the clone is saved to the cache. When false, the val
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="concurrency-checks-enabled" type="xsd:string"
|
||||
default="true">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[[
|
||||
Indicates whether concurrency checks (versioning) are enabled for the region
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="destroy" type="xsd:string"
|
||||
default="false">
|
||||
<xsd:annotation>
|
||||
|
||||
@@ -57,6 +57,8 @@ public class ReplicatedRegionNamespaceTest {
|
||||
assertTrue(context.containsBean("simple"));
|
||||
RegionFactoryBean fb = context.getBean("&simple", RegionFactoryBean.class);
|
||||
assertEquals(false ,(Boolean)TestUtils.readField("close", fb));
|
||||
RegionAttributes attrs = TestUtils.readField("attributes", fb);
|
||||
assertFalse(attrs.getConcurrencyChecksEnabled());
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
@@ -69,6 +71,7 @@ public class ReplicatedRegionNamespaceTest {
|
||||
assertEquals("publisher", TestUtils.readField("name", fb));
|
||||
RegionAttributes attrs = TestUtils.readField("attributes", fb);
|
||||
assertFalse(attrs.getPublisher());
|
||||
assertTrue(attrs.getConcurrencyChecksEnabled());
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<gfe:cache />
|
||||
|
||||
<gfe:replicated-region id="simple" close="false" />
|
||||
<gfe:replicated-region id="simple" close="false" concurrency-checks-enabled="false" />
|
||||
|
||||
<gfe:replicated-region id="pub" name="publisher"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user