ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: How to set timeout for ComputeTask and GridCacheTransaction?
Date Thu, 28 Jul 2016 22:50:27 GMT
Hi Jason,

For tasks you can IgniteCompute.withTimeout() method:

ignite.compute().withTimeout(*5000*).execute(...);

For transactions you can set timeout when it's created:

ignite.transactions().txStart(PESSIMISTIC, REPEATABLE_READ, *5000*, 0);

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-set-timeout-for-ComputeTask-and-GridCacheTransaction-tp6592p6604.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message