Package org.apache.ignite.cache.manager
Interface IgniteCaches
public interface IgniteCaches
Interface that provides methods for managing caches.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable Cache
Gets a cache with the specified name if that cache exists.@Nullable Cache
cache
(QualifiedName name) Gets a cache with the specified name if that cache exists.default CompletableFuture<Cache>
cacheAsync
(String name) Gets a cache with the specified name if that cache exists.cacheAsync
(QualifiedName name) Gets a cache with the specified name if that cache exists.caches()
Gets a list of all started caches.Gets a list of all started caches.
-
Method Details
-
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
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
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
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.
-