public class PojoFunctionWrapper extends Object implements org.apache.geode.cache.execute.Function
POJO Method as a (remote) Pivotal GemFire/Apache Geode Function.
 If the POJO has a constructor that takes a Map, and the Function context
 is a Region, the Region will be injected.
 The delegate class name, the method name,
 and Method arguments are part of the Function invocation, therefore all arguments
 must be Serializable or an alternate serialization strategy must be used.
 The delegate Class must be on the class path of the remote cache(s).Function, 
Serialized Form| Constructor and Description | 
|---|
| PojoFunctionWrapper(Object target,
                   Method method,
                   String id) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute(org.apache.geode.cache.execute.FunctionContext functionContext) | 
| String | getId() | 
| boolean | hasResult() | 
| protected Object | invokeTargetMethod(Object[] args) | 
| boolean | isHA() | 
| boolean | optimizeForWrite() | 
| void | setBatchSize(int batchSize) | 
| void | setHA(boolean HA) | 
| void | setHasResult(boolean hasResult) | 
| void | setOptimizeForWrite(boolean optimizeForWrite) | 
public void setBatchSize(int batchSize)
public void setHA(boolean HA)
public boolean isHA()
isHA in interface org.apache.geode.cache.execute.Functionpublic void setHasResult(boolean hasResult)
public boolean hasResult()
hasResult in interface org.apache.geode.cache.execute.Functionpublic String getId()
getId in interface org.apache.geode.cache.execute.FunctiongetId in interface org.apache.geode.lang.Identifiablepublic void setOptimizeForWrite(boolean optimizeForWrite)
public boolean optimizeForWrite()
optimizeForWrite in interface org.apache.geode.cache.execute.Functionpublic void execute(org.apache.geode.cache.execute.FunctionContext functionContext)
execute in interface org.apache.geode.cache.execute.FunctionCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.