|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.gemfire.function.execution.GemfireOnRegionFunctionTemplate
public class GemfireOnRegionFunctionTemplate
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
protected com.gemstone.gemfire.cache.execute.ResultCollector<?,?> |
resultCollector
|
protected long |
timeout
|
| Constructor Summary | |
|---|---|
GemfireOnRegionFunctionTemplate(com.gemstone.gemfire.cache.Region<?,?> region)
Constructs an instance of the GemFireOnRegionFunctionTemplate with the given GemFire Cache Region. |
|
| Method Summary | ||
|---|---|---|
protected
|
execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution)
|
|
protected
|
execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution,
boolean returnResult)
|
|
|
execute(com.gemstone.gemfire.cache.execute.Function function,
Object... args)
Execute an unregistered GemFire Function with the given arguments. |
|
|
execute(com.gemstone.gemfire.cache.execute.Function function,
Set<?> keys,
Object... args)
|
|
|
execute(GemfireFunctionCallback<T> callback)
Execute a GemFire Function using a native GemFire Execution instance. |
|
|
execute(String functionId,
Object... args)
Execute a GemFire Function registered with the given ID. |
|
|
execute(String functionId,
Set<?> keys,
Object... args)
|
|
protected
|
executeAndExtract(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution execution)
|
|
|
executeAndExtract(com.gemstone.gemfire.cache.execute.Function function,
Object... args)
Execute an unregistered GemFire Function with the expected singleton result. |
|
|
executeAndExtract(String functionId,
Object... args)
Execute a GemFire Function registered with an ID and with an expected singleton result |
|
|
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.AbstractFunctionExecution |
getFunctionExecution()
|
|
com.gemstone.gemfire.cache.execute.ResultCollector<?,?> |
getResultCollector()
|
|
void |
setResultCollector(com.gemstone.gemfire.cache.execute.ResultCollector<?,?> resultCollector)
|
|
void |
setTimeout(long timeout)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.gemfire.function.execution.GemfireFunctionOperations |
|---|
execute, execute, execute, executeAndExtract, executeAndExtract, executeWithNoResult |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected long timeout
protected volatile com.gemstone.gemfire.cache.execute.ResultCollector<?,?> resultCollector
| Constructor Detail |
|---|
public GemfireOnRegionFunctionTemplate(com.gemstone.gemfire.cache.Region<?,?> region)
region - the GemFire Cache Region upon which the Function will be executed.Region| Method Detail |
|---|
public <T> Iterable<T> execute(com.gemstone.gemfire.cache.execute.Function function,
Set<?> keys,
Object... args)
execute in interface GemfireOnRegionOperations
public <T> Iterable<T> execute(String functionId,
Set<?> keys,
Object... args)
execute in interface GemfireOnRegionOperations
public <T> T executeAndextract(String functionId,
Set<?> keys,
Object... args)
executeAndextract in interface GemfireOnRegionOperationsprotected org.springframework.data.gemfire.function.execution.AbstractFunctionExecution getFunctionExecution()
public void executeWithNoResult(String functionId,
Set<?> keys,
Object... args)
executeWithNoResult in interface GemfireOnRegionOperations
public <T> Iterable<T> execute(com.gemstone.gemfire.cache.execute.Function function,
Object... args)
GemfireFunctionOperations
execute 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(com.gemstone.gemfire.cache.execute.Function function,
Object... args)
GemfireFunctionOperations
executeAndExtract 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.
Function
public <T> Iterable<T> execute(String functionId,
Object... args)
GemfireFunctionOperations
execute 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)
GemfireFunctionOperations
executeWithNoResult 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 executeAndExtract(String functionId,
Object... args)
GemfireFunctionOperations
executeAndExtract 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 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 setTimeout(long timeout)
public void setResultCollector(com.gemstone.gemfire.cache.execute.ResultCollector<?,?> resultCollector)
public com.gemstone.gemfire.cache.execute.ResultCollector<?,?> getResultCollector()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||