Class ThinClientCacheAdapter<K,V>

java.lang.Object
org.gridgain.ignite.migrationtools.adapter.internal.ThinClientCacheAdapter<K,V>
All Implemented Interfaces:
org.apache.ignite.client.ClientCache<K,V>

public class ThinClientCacheAdapter<K,V> extends Object implements org.apache.ignite.client.ClientCache<K,V>
  • Constructor Details

    • ThinClientCacheAdapter

      public ThinClientCacheAdapter(CacheAdapter<K,V> base)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.ignite.client.ClientCache<K,V>
    • getConfiguration

      public org.apache.ignite.client.ClientCacheConfiguration getConfiguration() throws org.apache.ignite.client.ClientException
      Specified by:
      getConfiguration in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getConfigurationAsync

      public org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCacheConfiguration> getConfigurationAsync() throws org.apache.ignite.client.ClientException
      Specified by:
      getConfigurationAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • get

      public V get(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      get in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAsync

      public org.apache.ignite.client.IgniteClientFuture<V> getAsync(K key)
      Specified by:
      getAsync in interface org.apache.ignite.client.ClientCache<K,V>
    • put

      public void put(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      put in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • putAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> putAsync(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      putAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • containsKey

      public boolean containsKey(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      containsKey in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • containsKeyAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> containsKeyAsync(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      containsKeyAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • containsKeys

      public boolean containsKeys(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      containsKeys in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • containsKeysAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> containsKeysAsync(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      containsKeysAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • size

      public int size(org.apache.ignite.cache.CachePeekMode... peekModes) throws org.apache.ignite.client.ClientException
      Specified by:
      size in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • sizeAsync

      public org.apache.ignite.client.IgniteClientFuture<Integer> sizeAsync(org.apache.ignite.cache.CachePeekMode... peekModes) throws org.apache.ignite.client.ClientException
      Specified by:
      sizeAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAll

      public Map<K,V> getAll(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      getAll in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAllAsync

      public org.apache.ignite.client.IgniteClientFuture<Map<K,V>> getAllAsync(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      getAllAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • putAll

      public void putAll(Map<? extends K,? extends V> map) throws org.apache.ignite.client.ClientException
      Specified by:
      putAll in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • putAllAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> putAllAsync(Map<? extends K,? extends V> map) throws org.apache.ignite.client.ClientException
      Specified by:
      putAllAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • replace

      public boolean replace(K key, V oldVal, V newVal) throws org.apache.ignite.client.ClientException
      Specified by:
      replace in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • replaceAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> replaceAsync(K key, V oldVal, V newVal) throws org.apache.ignite.client.ClientException
      Specified by:
      replaceAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • replace

      public boolean replace(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      replace in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • replaceAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> replaceAsync(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      replaceAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • remove

      public boolean remove(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      remove in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • removeAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> removeAsync(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      removeAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • remove

      public boolean remove(K key, V oldVal) throws org.apache.ignite.client.ClientException
      Specified by:
      remove in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • removeAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> removeAsync(K key, V oldVal) throws org.apache.ignite.client.ClientException
      Specified by:
      removeAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • removeAll

      public void removeAll(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      removeAll in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • removeAllAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> removeAllAsync(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      removeAllAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • removeAll

      public void removeAll() throws org.apache.ignite.client.ClientException
      Specified by:
      removeAll in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • removeAllAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> removeAllAsync() throws org.apache.ignite.client.ClientException
      Specified by:
      removeAllAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndPut

      public V getAndPut(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndPut in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndPutAsync

      public org.apache.ignite.client.IgniteClientFuture<V> getAndPutAsync(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndPutAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndRemove

      public V getAndRemove(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndRemove in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndRemoveAsync

      public org.apache.ignite.client.IgniteClientFuture<V> getAndRemoveAsync(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndRemoveAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndReplace

      public V getAndReplace(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndReplace in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndReplaceAsync

      public org.apache.ignite.client.IgniteClientFuture<V> getAndReplaceAsync(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndReplaceAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • putIfAbsent

      public boolean putIfAbsent(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      putIfAbsent in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • putIfAbsentAsync

      public org.apache.ignite.client.IgniteClientFuture<Boolean> putIfAbsentAsync(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      putIfAbsentAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndPutIfAbsent

      public V getAndPutIfAbsent(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndPutIfAbsent in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • getAndPutIfAbsentAsync

      public org.apache.ignite.client.IgniteClientFuture<V> getAndPutIfAbsentAsync(K key, V val) throws org.apache.ignite.client.ClientException
      Specified by:
      getAndPutIfAbsentAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • clear

      public void clear() throws org.apache.ignite.client.ClientException
      Specified by:
      clear in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • clearAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> clearAsync() throws org.apache.ignite.client.ClientException
      Specified by:
      clearAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • clear

      public void clear(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      clear in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • clearAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> clearAsync(K key) throws org.apache.ignite.client.ClientException
      Specified by:
      clearAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • clearAll

      public void clearAll(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      clearAll in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • clearAllAsync

      public org.apache.ignite.client.IgniteClientFuture<Void> clearAllAsync(Set<? extends K> keys) throws org.apache.ignite.client.ClientException
      Specified by:
      clearAllAsync in interface org.apache.ignite.client.ClientCache<K,V>
      Throws:
      org.apache.ignite.client.ClientException
    • withKeepBinary

      public <K1, V1> org.apache.ignite.client.ClientCache<K1,V1> withKeepBinary()
      Specified by:
      withKeepBinary in interface org.apache.ignite.client.ClientCache<K,V>
    • withExpirePolicy

      public <K1, V1> org.apache.ignite.client.ClientCache<K1,V1> withExpirePolicy(javax.cache.expiry.ExpiryPolicy expiryPlc)
      Specified by:
      withExpirePolicy in interface org.apache.ignite.client.ClientCache<K,V>
    • withExpiryPolicy

      public <K1, V1> org.apache.ignite.client.ClientCache<K1,V1> withExpiryPolicy(javax.cache.expiry.ExpiryPolicy expiryPlc)
      Specified by:
      withExpiryPolicy in interface org.apache.ignite.client.ClientCache<K,V>
    • query

      public <R> org.apache.ignite.cache.query.QueryCursor<R> query(org.apache.ignite.cache.query.Query<R> qry)
      Specified by:
      query in interface org.apache.ignite.client.ClientCache<K,V>
    • query

      public org.apache.ignite.cache.query.FieldsQueryCursor<List<?>> query(org.apache.ignite.cache.query.SqlFieldsQuery qry)
      Specified by:
      query in interface org.apache.ignite.client.ClientCache<K,V>
    • query

      public <R> org.apache.ignite.cache.query.QueryCursor<R> query(org.apache.ignite.cache.query.ContinuousQuery<K,V> qry, org.apache.ignite.client.ClientDisconnectListener disconnectListener)
      Specified by:
      query in interface org.apache.ignite.client.ClientCache<K,V>
    • registerCacheEntryListener

      public void registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
      Specified by:
      registerCacheEntryListener in interface org.apache.ignite.client.ClientCache<K,V>
    • registerCacheEntryListener

      public void registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration, org.apache.ignite.client.ClientDisconnectListener disconnectListener)
      Specified by:
      registerCacheEntryListener in interface org.apache.ignite.client.ClientCache<K,V>
    • deregisterCacheEntryListener

      public void deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
      Specified by:
      deregisterCacheEntryListener in interface org.apache.ignite.client.ClientCache<K,V>