[ https://issues.apache.org/jira/browse/GEODE-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Gomez updated GEODE-7049: --------------------------------- Description: The Java client only allows to set a timeout to functions by means of a system property (gemfire.CLIENT_FUNCTION_TIMEOUT) while the C++ and C# native clients allow to pass a timeout parameter on a function execution basis. It will be good to have the same functionality on the Java client by means of having the following methods on the Execution interface: {code:java} ResultCollector<OUT, AGG> execute(Function function, int timeoutMs) throws FunctionException; ResultCollector<OUT, AGG> execute(String functionId, int timeoutMs) throws FunctionException; {code} was: The Java client only allows to set a timeout to functions by means of a system property (gemfire.CLIENT_FUNCTION_TIMEOUT) while the C++ and C# native clients allow to pass a timeout parameter on a function execution basis. It will be good to have the same functionality on the Java native client by means of having the following methods on the Execution interface: {code:java} ResultCollector<OUT, AGG> execute(Function function, int timeoutMs) throws FunctionException; ResultCollector<OUT, AGG> execute(String functionId, int timeoutMs) throws FunctionException; {code} > Add timeout parameter to Java client Execution::execute() methods > ------------------------------------------------------------------ > > Key: GEODE-7049 > URL: https://issues.apache.org/jira/browse/GEODE-7049 > Project: Geode > Issue Type: Improvement > Components: native client > Reporter: Alberto Gomez > Assignee: Alberto Gomez > Priority: Major > Time Spent: 1h 50m > Remaining Estimate: 0h > > The Java client only allows to set a timeout to functions by means of a > system property (gemfire.CLIENT_FUNCTION_TIMEOUT) while the C++ and C# native > clients allow to pass a timeout parameter on a function execution basis. > It will be good to have the same functionality on the Java client by means of > having the following methods on the Execution interface: > > {code:java} > ResultCollector<OUT, AGG> execute(Function function, int timeoutMs) throws > FunctionException; > ResultCollector<OUT, AGG> execute(String functionId, int timeoutMs) throws > FunctionException; > {code} > -- This message was sent by Atlassian Jira (v8.3.2#803003)