public abstract class AbstractClientFunctionTemplate extends Object
Function
Execution
.RegionService
,
ClientCache
,
Pool
,
Execution
,
Function
Modifier and Type | Field and Description |
---|---|
protected static PoolResolver |
DEFAULT_POOL_RESOLVER |
Constructor and Description |
---|
AbstractClientFunctionTemplate(org.apache.geode.cache.client.Pool pool) |
AbstractClientFunctionTemplate(org.apache.geode.cache.RegionService regionService) |
AbstractClientFunctionTemplate(String poolName) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected <T> Iterable<T> |
execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution functionExecution) |
protected <T> Iterable<T> |
execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution functionExecution,
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.
|
protected <T> T |
executeAndExtract(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution functionExecution) |
<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
|
void |
executeWithNoResult(String functionId,
Object... args)
Execute a GemFire Function registered with the given ID having no return value.
|
protected org.springframework.data.gemfire.function.execution.AbstractFunctionExecution |
getFunctionExecution() |
protected PoolResolver |
getPoolResolver() |
org.apache.geode.cache.execute.ResultCollector<?,?> |
getResultCollector() |
long |
getTimeout() |
protected abstract org.springframework.data.gemfire.function.execution.AbstractFunctionExecution |
newFunctionExecutionUsingPool(org.apache.geode.cache.client.Pool pool) |
protected abstract org.springframework.data.gemfire.function.execution.AbstractFunctionExecution |
newFunctionExecutionUsingRegionService(org.apache.geode.cache.RegionService regionService) |
protected org.apache.geode.cache.client.ClientCache |
resolveClientCache()
Deprecated.
as of 2.3.0; Use
resolveRegionService() . |
protected org.apache.geode.cache.client.Pool |
resolveDefaultPool() |
protected org.apache.geode.cache.client.Pool |
resolveNamedPool() |
protected org.apache.geode.cache.client.Pool |
resolvePool() |
protected org.apache.geode.cache.RegionService |
resolveRegionService() |
protected Object |
resolveRequiredGemFireObject() |
void |
setPool(org.apache.geode.cache.client.Pool pool) |
void |
setPoolName(String poolName) |
void |
setPoolResolver(PoolResolver poolResolver) |
void |
setResultCollector(org.apache.geode.cache.execute.ResultCollector<?,?> resultCollector) |
void |
setTimeout(long timeout) |
protected static final PoolResolver DEFAULT_POOL_RESOLVER
public AbstractClientFunctionTemplate(org.apache.geode.cache.RegionService regionService)
public AbstractClientFunctionTemplate(org.apache.geode.cache.client.Pool pool)
public AbstractClientFunctionTemplate(String poolName)
public void setPool(org.apache.geode.cache.client.Pool pool)
public void setPoolName(String poolName)
public void setPoolResolver(PoolResolver poolResolver)
protected PoolResolver getPoolResolver()
protected Object resolveRequiredGemFireObject()
@Deprecated protected org.apache.geode.cache.client.ClientCache resolveClientCache()
resolveRegionService()
.protected org.apache.geode.cache.client.Pool resolvePool()
protected org.apache.geode.cache.client.Pool resolveDefaultPool()
protected org.apache.geode.cache.client.Pool resolveNamedPool()
protected org.apache.geode.cache.RegionService resolveRegionService()
protected org.springframework.data.gemfire.function.execution.AbstractFunctionExecution getFunctionExecution()
protected abstract org.springframework.data.gemfire.function.execution.AbstractFunctionExecution newFunctionExecutionUsingPool(org.apache.geode.cache.client.Pool pool)
protected abstract org.springframework.data.gemfire.function.execution.AbstractFunctionExecution newFunctionExecutionUsingRegionService(org.apache.geode.cache.RegionService regionService)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public <T> Iterable<T> execute(org.apache.geode.cache.execute.Function function, Object... args)
GemfireFunctionOperations
execute
in interface GemfireFunctionOperations
T
- 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)
GemfireFunctionOperations
executeAndExtract
in interface GemfireFunctionOperations
T
- 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 GemfireFunctionOperations
T
- 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)
GemfireFunctionOperations
executeAndExtract
in interface GemfireFunctionOperations
T
- 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 GemfireFunctionOperations
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)
GemfireFunctionOperations
Execution
instance.execute
in interface GemfireFunctionOperations
T
- type parameter specifying the result type of the Function execution.callback
- a callback providing the execution instance.GemfireFunctionCallback
protected <T> Iterable<T> execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution functionExecution)
protected <T> Iterable<T> execute(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution functionExecution, boolean returnResult)
protected <T> T executeAndExtract(org.springframework.data.gemfire.function.execution.AbstractFunctionExecution functionExecution)
public void setResultCollector(org.apache.geode.cache.execute.ResultCollector<?,?> resultCollector)
public org.apache.geode.cache.execute.ResultCollector<?,?> getResultCollector()
public void setTimeout(long timeout)
public long getTimeout()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.