Skip to content
Snippets Groups Projects
Commit d787e9e0 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Dummy implementation of invalidateAll() for (Volatile)Cache

This will be needed by VolatileGlobalCellCache.clearCache(), but so far it
just throws an exception.
parent 6d62c1d9
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,9 @@ public interface Cache< K, V > ...@@ -23,8 +23,9 @@ public interface Cache< K, V >
*/ */
V get( K key, Callable< ? extends V > loader ) throws ExecutionException; V get( K key, Callable< ? extends V > loader ) throws ExecutionException;
void invalidateAll();
// void cleanUp(); // void cleanUp();
// void invalidate( Object key ); // void invalidate( Object key );
// void invalidateAll();
// long size(); // long size();
} }
...@@ -150,4 +150,11 @@ public class SoftRefCache< K, V > implements Cache< K, V > ...@@ -150,4 +150,11 @@ public class SoftRefCache< K, V > implements Cache< K, V >
} }
return i; return i;
} }
@Override
public void invalidateAll()
{
// TODO
throw new UnsupportedOperationException( "not implemented yet" );
}
} }
...@@ -24,8 +24,9 @@ public interface VolatileCache< K, V > ...@@ -24,8 +24,9 @@ public interface VolatileCache< K, V >
*/ */
V get( K key, VolatileLoader< ? extends V > loader, final CacheHints cacheHints ) throws ExecutionException; V get( K key, VolatileLoader< ? extends V > loader, final CacheHints cacheHints ) throws ExecutionException;
void invalidateAll();
// void cleanUp(); // void cleanUp();
// void invalidate( Object key ); // void invalidate( Object key );
// void invalidateAll();
// long size(); // long size();
} }
...@@ -204,6 +204,12 @@ public class WeakRefVolatileCache< K, V extends VolatileCacheValue > implements ...@@ -204,6 +204,12 @@ public class WeakRefVolatileCache< K, V extends VolatileCacheValue > implements
return i; return i;
} }
@Override
public void invalidateAll()
{
// TODO
throw new UnsupportedOperationException( "not implemented yet" );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment