Interface IgniteCaches


public interface IgniteCaches
Interface that provides methods for managing caches.
  • Method Details

    • caches

      List<Cache> caches()
      Gets a list of all started caches.
      Returns:
      List of caches.
      Throws:
      IgniteException - If an unspecified platform exception has occurred internally. Is thrown when:
      • the node is stopping.
    • cachesAsync

      CompletableFuture<List<Cache>> cachesAsync()
      Gets a list of all started caches.
      Returns:
      Future that represents the pending completion of the operation.
      Throws:
      IgniteException - If an unspecified platform exception has occurred internally. Is thrown when:
      • the node is stopping.
    • cache

      @Nullable default @Nullable Cache cache(String name)
      Gets a cache with the specified name if that cache exists.
      Parameters:
      name - Name of the cache with SQL-parser style quotation, e.g. "tbl0" - the cache "TBL0" will be looked up, "\"Tbl0\"" - "Tbl0", etc.
      Returns:
      Cache identified by name or null if cache doesn't exist.
      Throws:
      IgniteException - If an unspecified platform exception has occurred internally. Is thrown when:
      • the node is stopping.
    • cache

      @Nullable @Nullable Cache cache(QualifiedName name)
      Gets a cache with the specified name if that cache exists.
      Parameters:
      name - Cache name.
      Returns:
      Cache identified by name or null if cache doesn't exist.
    • cacheAsync

      default CompletableFuture<Cache> cacheAsync(String name)
      Gets a cache with the specified name if that cache exists.
      Parameters:
      name - Name of the cache with SQL-parser style quotation, e.g. "tbl0" - the cache "TBL0" will be looked up, "\"Tbl0\"" - "Tbl0", etc.
      Returns:
      Future that represents the pending completion of the operation.
      Throws:
      IgniteException - If an unspecified platform exception has occurred internally. Is thrown when:
      • the node is stopping.
    • cacheAsync

      Gets a cache with the specified name if that cache exists.
      Parameters:
      name - Cache name.
      Returns:
      Future that represents the pending completion of the operation.