/** {@inheritDoc} */ @Override public IgniteFuture<Void> putAsync(K key, V val) { return createFuture(putAsync0(key, val)); }
/** {@inheritDoc} */ @Override public void put(K key, V val) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { if (isAsync()) setFuture(putAsync0(key, val)); else delegate.put(key, val); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> putAsync(K key, V val) { return createFuture(putAsync0(key, val)); }
/** {@inheritDoc} */ @Override public void put(K key, V val) { try { if (isAsync()) setFuture(putAsync0(key, val)); else delegate.put(key, val); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }