[exo-jcr-commits] exo-jcr SVN: r919 - kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Dec 3 08:45:47 EST 2009


Author: dkatayev
Date: 2009-12-03 08:45:47 -0500 (Thu, 03 Dec 2009)
New Revision: 919

Modified:
   kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java
   kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExpireKeyStartWithSelector.java
Log:
EXOJCR-268 throw declarations updated

Modified: kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java
===================================================================
--- kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java	2009-12-03 13:00:56 UTC (rev 918)
+++ kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java	2009-12-03 13:45:47 UTC (rev 919)
@@ -70,7 +70,7 @@
     * @param key the cache key
     * @return the cached value which may be evaluated to null
     */
-   public V get(Serializable key);
+   public V get(Serializable key) throws Exception;
 
    /**
     * Removes an entry from the cache.
@@ -79,7 +79,7 @@
     * @return the previously cached value or null if no entry existed or that entry value was evaluated to null
     * @throws NullPointerException if the provided key is null
     */
-   public V remove(Serializable key) throws NullPointerException;
+   public V remove(Serializable key) throws Exception;
 
    /**
     * Performs a put in the cache.
@@ -88,7 +88,7 @@
     * @param value the cached value
     * @throws NullPointerException if the key is null
     */
-   public void put(K key, V value) throws NullPointerException;
+   public void put(K key, V value) throws Exception;
 
    /**
     * Performs a put of all the entries provided by the map argument.
@@ -104,7 +104,7 @@
     */
    @Managed
    @ManagedDescription("Evict all entries of the cache")
-   public void clearCache();
+   public void clearCache() throws Exception;
 
    /**
     * Selects a subset of the cache.
@@ -198,7 +198,7 @@
     * @return the list of cached objects
     * @throws Exception any exception
     */
-   public List<? extends V> removeCachedObjects();
+   public List<? extends V> removeCachedObjects() throws Exception;
 
    /**
     * Add a listener.

Modified: kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExpireKeyStartWithSelector.java
===================================================================
--- kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExpireKeyStartWithSelector.java	2009-12-03 13:00:56 UTC (rev 918)
+++ kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExpireKeyStartWithSelector.java	2009-12-03 13:45:47 UTC (rev 919)
@@ -42,7 +42,7 @@
       return false;
    }
 
-   public void onSelect(ExoCache<? extends K, ? extends V> cache, K key, ObjectCacheInfo<? extends V> ocinfo)
+   public void onSelect(ExoCache<? extends K, ? extends V> cache, K key, ObjectCacheInfo<? extends V> ocinfo) throws Exception
    {
       cache.remove(key);
    }



More information about the exo-jcr-commits mailing list