Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Custom timeout for remote GigaSpaces tasks

Is it possible to specify a task-specific timeout when executing a remote task? All GigaSpace.async* methods have such possibility, but GigaSpace.exec* methods appears to be missing explicit timeouts.

Or am I missing something and there are no scenarios when an explicit timeout makes sense for a remote execution? I thought about the case when we do not call a get() method on a returned Future explicitly, but register an AsyncFutureListener to be called when the task is finished.

asked 2019-07-09 05:56:53 -0500

Alexey Serdyuk's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

If you are using for example a distributed task and collecting the results in a reduce method, the reduce method is only called only after all results are generated.

What you could do is put some timeout logic in the execute() method. In the case a timeout is reached throw an exception and execution will continue and gather the results (or exception) in the reduce method.

If you would like to advocate and receive updates regarding feature, please open a support case. BTW, this behavior has been requested by another customer.

answered 2019-07-09 11:13:12 -0500

Dixson Huie's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-07-09 05:56:53 -0500

Seen: 208 times

Last updated: Jul 09 '19