K
- the type of keysV
- the type of valuespublic class FailingCacheWriter<K,V> extends RecordingCacheWriter<K,V>
CacheWriter
implementation that always throws a
UnsupportedOperationException
, regardless of the request.Constructor and Description |
---|
FailingCacheWriter() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Object key) |
void |
deleteAll(Collection<?> keys) |
void |
write(Cache.Entry<? extends K,? extends V> entry) |
void |
writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries) |
clear, close, get, getDeleteCount, getWriteCount, hasDeleted, hasWritten
public void write(Cache.Entry<? extends K,? extends V> entry)
write
in interface CacheWriter<K,V>
write
in class RecordingCacheWriter<K,V>
public void writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
writeAll
in interface CacheWriter<K,V>
writeAll
in class RecordingCacheWriter<K,V>
public void delete(Object key)
delete
in interface CacheWriter<K,V>
delete
in class RecordingCacheWriter<K,V>
public void deleteAll(Collection<?> keys)
deleteAll
in interface CacheWriter<K,V>
deleteAll
in class RecordingCacheWriter<K,V>
Copyright © 2014. All Rights Reserved.