public interface IgniteClient extends AutoCloseable
Unlike Ignite client nodes, thin clients do not start Ignite infrastructure and communicate with Ignite cluster over a fast and lightweight protocol.
| Modifier and Type | Method and Description |
|---|---|
IgniteBinary |
binary() |
<K,V> ClientCache<K,V> |
cache(String name)
Get existing cache.
|
Collection<String> |
cacheNames() |
<K,V> ClientCache<K,V> |
createCache(ClientCacheConfiguration cfg)
Create cache.
|
<K,V> ClientCache<K,V> |
createCache(String name)
Create cache.
|
void |
destroyCache(String name)
Destroy cache.
|
<K,V> ClientCache<K,V> |
getOrCreateCache(ClientCacheConfiguration cfg)
Get existing cache or create the cache if it does not exist.
|
<K,V> ClientCache<K,V> |
getOrCreateCache(String name)
Get existing cache or create the cache if it does not exist.
|
FieldsQueryCursor<List<?>> |
query(SqlFieldsQuery qry)
Execute SQL query and get cursor to iterate over results.
|
ClientTransactions |
transactions()
Gets client transactions facade.
|
close<K,V> ClientCache<K,V> getOrCreateCache(String name) throws ClientException
name - Cache name.ClientException<K,V> ClientCache<K,V> getOrCreateCache(ClientCacheConfiguration cfg) throws ClientException
cfg - Cache configuration.ClientException<K,V> ClientCache<K,V> cache(String name)
name - Cache name.Collection<String> cacheNames() throws ClientException
ClientExceptionvoid destroyCache(String name) throws ClientException
ClientException<K,V> ClientCache<K,V> createCache(String name) throws ClientException
name - Cache name.ClientException<K,V> ClientCache<K,V> createCache(ClientCacheConfiguration cfg) throws ClientException
cfg - Cache configuration.ClientExceptionIgniteBinary binary()
IgniteBinary interface.FieldsQueryCursor<List<?>> query(SqlFieldsQuery qry)
qry - SQL query.ClientTransactions transactions()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020