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.

Reply via email to