ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Scherbakov <alexey.scherbak...@gmail.com>
Subject Re: How can i get igniteCache data with timeout?
Date Wed, 15 Jun 2016 10:03:39 GMT
Hi,

You can use withAsync Ignite's feature.

Basic usage:

IgniteCache cache= ignite.cache(null).withAsync();
cache.get(key);
cache.future().get(timeout)

By default where is a limitation on max async operations to prevent system
overload,
which is defined by CacheConfiguration.setMaxConcurrentAsyncOperations
More info here [1]

[1] https://apacheignite.readme.io/docs/async-support


2016-06-15 6:41 GMT+03:00 Jone Zhang <joyoungzhang@gmail.com>:

> I'm looking forward to use ignite as below:
>
> IgniteCache icache = ...
>
> icache .get(key1, timeout)
> ...
> icache .get(keyn, timeout)
>
> Unfortunately it is no way.
> How can i get igniteCache data with timeout?
>
> Best Wishes.
> Thanks.
>



-- 

Best regards,
Alexei Scherbakov

Mime
View raw message