/** * Standard update method. * <p> * @param ce * @throws IOException */ public void localUpdate( ICacheElement<K, V> ce ) throws IOException { update( ce, true ); }
/** * Standard update method. * <p> * @param ce * @throws IOException */ public void localUpdate( ICacheElement<K, V> ce ) throws IOException { update( ce, true ); }
/** * Standard update method. * <p> * @param ce * @throws IOException */ @Override public void update( ICacheElement<K, V> ce ) throws IOException { update( ce, false ); }
/** * Standard update method. * <p> * @param ce * @throws IOException */ @Override public void update( ICacheElement<K, V> ce ) throws IOException { update( ce, false ); }
/** * Processes an update request. * <p> * If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote * origination. * <p> * @param item * @param requesterId * @throws IOException */ @Override public void processUpdate( ICacheElement<K, V> item, long requesterId ) throws IOException { CompositeCache<K, V> cache = getCacheManager().getCache( item.getCacheName() ); boolean keepLocal = !remoteHttpCacheServerAttributes.isLocalClusterConsistency(); if ( keepLocal ) { cache.localUpdate( item ); } else { cache.update( item ); } }
/** * Processes an update request. * <p> * If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote * origination. * <p> * @param item * @param requesterId * @throws IOException */ @Override public void processUpdate( ICacheElement<K, V> item, long requesterId ) throws IOException { CompositeCache<K, V> cache = getCacheManager().getCache( item.getCacheName() ); boolean keepLocal = !remoteHttpCacheServerAttributes.isLocalClusterConsistency(); if ( keepLocal ) { cache.localUpdate( item ); } else { cache.update( item ); } }
private void touch(final K key, final ICacheElement<K, V> element) { if (config.isStoreByValue()) { final K copy = copy(serializer, manager.getClassLoader(), key); try { delegate.update(new CacheElement<K, V>(name, copy, element.getVal(), element.getElementAttributes())); } catch (final IOException e) { throw new CacheException(e); } } }
try delegate.update(element);
delegate.update(updateElement(key, v, expiryForAccess));
this.getCacheControl().update( ce );
this.getCacheControl().update( ce );
cache.update( element, false );
cache.update( element, false );
cache.update( element, false );
cache.update( element, false );
cache.update( element );
cache.update( element );
ICacheElement<GroupAttrName<String>, String> element = new CacheElement<GroupAttrName<String>, String>( "test", groupKey, "value1" ); cache.update( element );
cache.update( element );
cache.update( element );