Hi,

This method is not marked by IgniteAsyncSupport annotation and therefore,
it cannot be used with enabled asynchronous mode on Ignite API.
I mean that the following code throws IllegalStateException:
    IgniteCache asyncCache = cache.withAsync();
    QueryCursor cursor = asyncCache.query(sqlFieldsQuery);
    IgniteFuture fut = asyncCache.future();

Exception in thread "..." java.lang.IllegalStateException: Asynchronous
operation not started.
        at
org.apache.ignite.internal.AsyncSupportAdapter.future(AsyncSupportAdapter.java:91)
        at
org.apache.ignite.internal.AsyncSupportAdapter.future(AsyncSupportAdapter.java:73)

So, you need to do that in your own way.

By the way, asynchronous support was reworked as of Apache Ignite 2.x [1]
(using of IgniteAsyncSupport should be avoided).
[1] https://apacheignite.readme.io/docs/async-support

Thanks!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to