List of usage examples for org.springframework.data.gemfire.function.execution GemfireOnRegionFunctionTemplate executeAndExtract
@Override
public <T> T executeAndExtract(String functionId, Set<?> keys, Object... args)
From source file:org.spring.data.gemfire.cache.PeerCacheFunctionCreationExecutionTest.java
@Test public void testRegionSizeOnRegionUsingSpringGemfireOnRegionFunctionTemplate() { GemfireOnRegionFunctionTemplate template = new GemfireOnRegionFunctionTemplate(appData); assertThat(template.executeAndextract("regionSize", Collections.emptySet(), appData.getName()), is(equalTo(EXPECTED_REGION_SIZE))); }
From source file:org.spring.data.gemfire.cache.ClientCacheFunctionExecutionTest.java
@Test public void testRegionSizeOnRegionUsingSpringGemfireOnRegionFunctionTemplate() { GemfireOnRegionFunctionTemplate template = new GemfireOnRegionFunctionTemplate(appDataProxy); assertThat(template.executeAndextract("regionSize", Collections.emptySet(), "AppData"), is(equalTo(EXPECTED_REGION_SIZE))); }