org.apache.ignite.lang

## Interface IgniteAsyncSupport

- All Known Subinterfaces:
    IgniteCache<K,V>, IgniteCluster, IgniteCompute, IgniteEvents, IgniteMessaging, IgniteServices, Transaction

  Deprecated.
  since 2.0. Please use specialized asynchronous methods.

      @Deprecated
      public interface IgniteAsyncSupport

  Allows to enable asynchronous mode on Ignite APIs, e.g.

           IgniteFuture f = cache.getAsync();

  instead of old-style async API:

           IgniteCache asyncCache = cache.withAsync();
           asyncCache.get(key);
           IgniteFuture fut = asyncCache.future();

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `<R> IgniteFuture<R>` | `future()` Deprecated. since 2.0. Please use new specialized async method e.g.
             IgniteFuture f = cache.getAsync();
    instead of old-style async API:
             IgniteCache asyncCache = cache.withAsync();
             asyncCache.get(key);
             IgniteFuture fut = asyncCache.future();
    `boolean` | `isAsync()` Deprecated. since 2.0. Please use new specialized async method e.g.
             IgniteFuture f = cache.getAsync();
    instead of old-style async API:
             IgniteCache asyncCache = cache.withAsync();
             asyncCache.get(key);
             IgniteFuture fut = asyncCache.future();
    `IgniteAsyncSupport` | `withAsync()` Deprecated. since 2.0. Please use new specialized async method e.g.
             IgniteFuture f = cache.getAsync();
    instead of old-style async API:
             IgniteCache asyncCache = cache.withAsync();
             asyncCache.get(key);
             IgniteFuture fut = asyncCache.future();

- - ### Method Detail

    - #### withAsync

          @Deprecated
          IgniteAsyncSupport withAsync()

      Deprecated. since 2.0. Please use new specialized async method e.g.

               IgniteFuture f = cache.getAsync();

      instead of old-style async API:

               IgniteCache asyncCache = cache.withAsync();
               asyncCache.get(key);
               IgniteFuture fut = asyncCache.future();

      Gets instance of this component with asynchronous mode enabled.
      Returns:
        Instance of this component with asynchronous mode enabled.

    - #### isAsync

          @Deprecated
          boolean isAsync()

      Deprecated. since 2.0. Please use new specialized async method e.g.

               IgniteFuture f = cache.getAsync();

      instead of old-style async API:

               IgniteCache asyncCache = cache.withAsync();
               asyncCache.get(key);
               IgniteFuture fut = asyncCache.future();

      Returns:
        `True` if asynchronous mode is enabled.

    - #### future

          @Deprecated
          <R> IgniteFuture<R> future()

      Deprecated. since 2.0. Please use new specialized async method e.g.

               IgniteFuture f = cache.getAsync();

      instead of old-style async API:

               IgniteCache asyncCache = cache.withAsync();
               asyncCache.get(key);
               IgniteFuture fut = asyncCache.future();

      Gets and resets future for previous asynchronous operation.
      Type Parameters:
        `R` - Type of the future result.
      Returns:
        Future for previous asynchronous operation.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.12.0
Release Date | : January 10 2022