/** * Constructor for the PurgatoryElement<K, V> object * * @param cacheElement CacheElement */ public PurgatoryElement( ICacheElement<K, V> cacheElement ) { super(cacheElement.getCacheName(), cacheElement.getKey(), cacheElement.getVal(), cacheElement.getElementAttributes()); this.cacheElement = cacheElement; }
/** * @return cacheElement.getKey(); * @see ICacheElement#getKey */ @Override public K getKey() { return cacheElement.getKey(); }
/** * Clears the region. * <p> * @param cacheName * @throws IOException */ @Override public void handleRemoveAll( String cacheName ) throws IOException { cache.removeAll(); }
/** * @return cacheElement.getElementAttributes(); * @see ICacheElement#getElementAttributes */ @Override public IElementAttributes getElementAttributes() { return cacheElement.getElementAttributes(); }
/** * @return cacheElement.getVal(); * @see ICacheElement#getVal */ @Override public V getVal() { return cacheElement.getVal(); }
/** * @param attr * @see ICacheElement#setElementAttributes */ @Override public void setElementAttributes( IElementAttributes attr ) { cacheElement.setElementAttributes( attr ); }
/** * @return cacheElement.getCacheName(); * @see ICacheElement#getCacheName */ @Override public String getCacheName() { return cacheElement.getCacheName(); }
/** * Gets the defaultElementAttributes attribute of the CacheHub object * <p> * @return The defaultElementAttributes value */ public IElementAttributes getDefaultElementAttributes() { return this.defaultElementAttr.clone(); }
/** * Gets the defaultElementAttributes attribute of the CacheHub object * <p> * @return The defaultElementAttributes value */ public IElementAttributes getDefaultElementAttributes() { return this.defaultElementAttr.copy(); }
/** * Returns the cache (aka "region") name. * <p> * @return The cacheName value */ public String getCacheName() { String attributeCacheName = this.cacheAttributes.getCacheName(); if(attributeCacheName != null) return attributeCacheName; return cacheName; }
/** * Gets the stats attribute of the RemoteCacheServer object. * <p> * @return The stats value * @throws IOException */ public String getStats() throws IOException { return cacheManager.getStats(); }
/** * Removes an item. * <p> * @param cacheName * @param key * @throws IOException */ @Override public void handleRemove( String cacheName, K key ) throws IOException { cache.remove( key ); }
/** * Shutdown call. * <p> * @param cacheName * @throws IOException */ @Override public void handleDispose( String cacheName ) throws IOException { cache.dispose(); } }
/** * Gets the defaultCacheAttributes attribute of the CacheHub object * <p> * @return The defaultCacheAttributes value */ public ICompositeCacheAttributes getDefaultCacheAttributes() { return this.defaultCacheAttr.clone(); }
/** * @return cacheElement.getElementAttributes(); * @see ICacheElement#getElementAttributes */ @Override public IElementAttributes getElementAttributes() { return cacheElement.getElementAttributes(); }
/** * @return cacheElement.getKey(); * @see ICacheElement#getKey */ @Override public K getKey() { return cacheElement.getKey(); }
/** * @return cacheElement.getCacheName(); * @see ICacheElement#getCacheName */ @Override public String getCacheName() { return cacheElement.getCacheName(); }
/** * Clears the region. * <p> * @param cacheName * @throws IOException */ @Override public void handleRemoveAll( String cacheName ) throws IOException { cache.removeAll(); }
/** * Gets the cacheName attribute of the Cache object. This is also known as the region name. * <p> * @return The cacheName value */ @Override public String getCacheName() { return cacheAttr.getCacheName(); }
/** * Gets the stats attribute of the RemoteCacheServer object. * <p> * @return The stats value * @throws IOException */ public String getStats() throws IOException { return cacheManager.getStats(); }