/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return false always * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( log.isDebugEnabled() ) { log.debug( "removing key:" + key ); } try { lateralCacheService.remove( cacheName, key, CacheInfo.listenerId ); } catch ( IOException ex ) { handleException( ex, "Failed to remove " + key + " from " + lateralCacheAttributes.getCacheName() + "@" + lateralCacheAttributes ); } return false; }
service.remove( event.cacheName, removeEvent.key, event.requesterId );
service.remove( event.cacheName, removeEvent.key, event.requesterId );
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return false always * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( log.isDebugEnabled() ) { log.debug( "removing key:" + key ); } try { lateralCacheService.remove( cacheName, key, CacheInfo.listenerId ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + lateralCacheAttributes.getCacheName() + "@" + lateralCacheAttributes ); } return false; }
remoteCacheService.remove( request.getCacheName(), request.getKey(), request.getRequesterId() ); break; case REMOVE_ALL:
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return boolean, whether or not the item was removed * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { if ( log.isDebugEnabled() ) { log.debug( "remove> key=" + key ); } try { getRemoteCacheService().remove( cacheName, key, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + cacheName, ICacheEventLogger.REMOVE_EVENT ); } return true; } return false; }
getRemoteCacheService().remove( request.getCacheName(), request.getKey(), request.getRequesterId() ); break;
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return boolean, whether or not the item was removed * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { if ( log.isDebugEnabled() ) { log.debug( "remove> key=" + key ); } try { getRemoteCacheService().remove( cacheName, key, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + cacheName, ICacheEventLogger.REMOVE_EVENT ); } return true; } return false; }