public class GemfireOnRegionFunctionTemplate extends Object implements GemfireOnRegionOperations
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.geode.cache.execute.ResultCollector<?,?> |
resultCollector |
protected long |
timeout |
| Constructor and Description |
|---|
GemfireOnRegionFunctionTemplate(org.apache.geode.cache.Region<?,?> region)
Constructs a new instance of the
GemfireOnRegionFunctionTemplate initialized with
the given Region. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected <T> Iterable<T> |
execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution) |
protected <T> Iterable<T> |
execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution,
boolean returnResult) |
<T> Iterable<T> |
execute(org.apache.geode.cache.execute.Function function,
Object... args)
Execute an unregistered GemFire Function with the given arguments.
|
<T> T |
execute(GemfireFunctionCallback<T> callback)
Execute a GemFire Function using a native GemFire
Execution instance. |
<T> Iterable<T> |
execute(String functionId,
Object... args)
Execute a GemFire Function registered with the given ID.
|
<T> Iterable<T> |
execute(String functionId,
Set<?> keys,
Object... args) |
protected <T> T |
executeAndExtract(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution) |
<T> T |
executeAndExtract(org.apache.geode.cache.execute.Function function,
Object... args)
Execute an unregistered GemFire Function with the expected singleton result.
|
<T> T |
executeAndExtract(String functionId,
Object... args)
Execute a GemFire Function registered with an ID and with an expected singleton result
|
<T> T |
executeAndExtract(String functionId,
Set<?> keys,
Object... args) |
void |
executeWithNoResult(String functionId,
Object... args)
Execute a GemFire Function registered with the given ID having no return value.
|
void |
executeWithNoResult(String functionId,
Set<?> keys,
Object... args) |
protected org.springframework.data.gemfire.function.execution.RegionFunctionExecution |
getFunctionExecution() |
org.apache.geode.cache.execute.ResultCollector<?,?> |
getResultCollector() |
void |
setResultCollector(org.apache.geode.cache.execute.ResultCollector<?,?> resultCollector) |
void |
setTimeout(long timeout) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, executeAndExtract, executeWithNoResultexecute, execute, execute, executeAndExtract, executeAndExtract, executeWithNoResultprotected long timeout
protected volatile org.apache.geode.cache.execute.ResultCollector<?,?> resultCollector
public GemfireOnRegionFunctionTemplate(org.apache.geode.cache.Region<?,?> region)
GemfireOnRegionFunctionTemplate initialized with
the given Region.region - the Region upon which the Function will be executed.IllegalArgumentException - if Region is null.Regionprotected org.springframework.data.gemfire.function.execution.RegionFunctionExecution getFunctionExecution()
public <T> Iterable<T> execute(String functionId, Set<?> keys, Object... args)
execute in interface GemfireOnRegionOperationspublic <T> T executeAndExtract(String functionId, Set<?> keys, Object... args)
executeAndExtract in interface GemfireOnRegionOperationspublic void executeWithNoResult(String functionId, Set<?> keys, Object... args)
executeWithNoResult in interface GemfireOnRegionOperationspublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic <T> Iterable<T> execute(org.apache.geode.cache.execute.Function function, Object... args)
GemfireFunctionOperationsexecute in interface GemfireFunctionOperationsT - type parameter specifying the result type of the Function execution.function - the GemFire Function object to execute.args - an array of Object arguments to the Function call.public <T> T executeAndExtract(org.apache.geode.cache.execute.Function function,
Object... args)
GemfireFunctionOperationsexecuteAndExtract in interface GemfireFunctionOperationsT - type parameter specifying the result type of the Function execution.function - the GemFire Function object.args - an array of Object arguments to the Function call.Functionpublic <T> Iterable<T> execute(String functionId, Object... args)
GemfireFunctionOperationsexecute in interface GemfireFunctionOperationsT - type parameter specifying the result type of the Function execution.functionId - the ID under which the GemFire function is registered.args - an array of Object arguments to the Function call.public <T> T executeAndExtract(String functionId, Object... args)
GemfireFunctionOperationsexecuteAndExtract in interface GemfireFunctionOperationsT - type parameter specifying the result type of the Function execution.functionId - the ID under which the GemFire function is registered.args - an array of Object arguments to the Function call.public void executeWithNoResult(String functionId, Object... args)
GemfireFunctionOperationsexecuteWithNoResult in interface GemfireFunctionOperationsfunctionId - the ID under which the GemFire function is registered.args - an array of Object arguments to the Function call.public <T> T execute(GemfireFunctionCallback<T> callback)
GemfireFunctionOperationsExecution instance.execute in interface GemfireFunctionOperationsT - type parameter specifying the result type of the Function execution.callback - a callback providing the execution instance.GemfireFunctionCallbackprotected <T> Iterable<T> execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution)
protected <T> Iterable<T> execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution, boolean returnResult)
protected <T> T executeAndExtract(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution)
public void setResultCollector(org.apache.geode.cache.execute.ResultCollector<?,?> resultCollector)
public org.apache.geode.cache.execute.ResultCollector<?,?> getResultCollector()
public void setTimeout(long timeout)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.