Top Description Constructors Methods
org.springframework.cache.interceptor

public Class SimpleCacheErrorHandler

extends Object
implements CacheErrorHandler
Class Inheritance
All Implemented Interfaces
org.springframework.cache.interceptor.CacheErrorHandler
Imports
org.springframework.cache.Cache, org.springframework.lang.Nullable

A simple CacheErrorHandler that does not handle the exception at all, simply throwing it back at the client.
Author
Stephane Nicoll
Since
4.1

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handleCacheClearError(RuntimeException
the exception thrown by the cache provider
exception
,
Cache
the cache to clear
cache
)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCacheClearError.

Handle the given runtime exception thrown by the cache provider when clearing the specified Cache, possibly rethrowing it as a fatal exception.
public void
handleCacheEvictError(RuntimeException
the exception thrown by the cache provider
exception
,
Cache
the cache
cache
,
Object
the key used to clear the item
key
)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCacheEvictError.

Handle the given runtime exception thrown by the cache provider when clearing an item with the specified key, possibly rethrowing it as a fatal exception.
public void
handleCacheGetError(RuntimeException
the exception thrown by the cache provider
exception
,
Cache
the cache
cache
,
Object
the key used to get the item
key
)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCacheGetError.

Handle the given runtime exception thrown by the cache provider when retrieving an item with the specified key, possibly rethrowing it as a fatal exception.
public void
handleCachePutError(RuntimeException
the exception thrown by the cache provider
exception
,
Cache
the cache
cache
,
Object
the key used to update the item
key
,
Object
the value to associate with the key
value
)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCachePutError.

Handle the given runtime exception thrown by the cache provider when updating an item with the specified key and value, possibly rethrowing it as a fatal exception.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SimpleCacheErrorHandlerback to summary
public SimpleCacheErrorHandler()

Method Detail

handleCacheClearErrorback to summary
public void handleCacheClearError(RuntimeException exception, Cache cache)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCacheClearError.

Doc from org.springframework.cache.interceptor.CacheErrorHandler.handleCacheClearError.

Handle the given runtime exception thrown by the cache provider when clearing the specified Cache, possibly rethrowing it as a fatal exception.

Parameters
exception:RuntimeException

the exception thrown by the cache provider

cache:Cache

the cache to clear

Annotations
@Override
handleCacheEvictErrorback to summary
public void handleCacheEvictError(RuntimeException exception, Cache cache, Object key)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCacheEvictError.

Doc from org.springframework.cache.interceptor.CacheErrorHandler.handleCacheEvictError.

Handle the given runtime exception thrown by the cache provider when clearing an item with the specified key, possibly rethrowing it as a fatal exception.

Parameters
exception:RuntimeException

the exception thrown by the cache provider

cache:Cache

the cache

key:Object

the key used to clear the item

Annotations
@Override
handleCacheGetErrorback to summary
public void handleCacheGetError(RuntimeException exception, Cache cache, Object key)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCacheGetError.

Doc from org.springframework.cache.interceptor.CacheErrorHandler.handleCacheGetError.

Handle the given runtime exception thrown by the cache provider when retrieving an item with the specified key, possibly rethrowing it as a fatal exception.

Parameters
exception:RuntimeException

the exception thrown by the cache provider

cache:Cache

the cache

key:Object

the key used to get the item

Annotations
@Override
handleCachePutErrorback to summary
public void handleCachePutError(RuntimeException exception, Cache cache, Object key, Object value)

Implements org.springframework.cache.interceptor.CacheErrorHandler.handleCachePutError.

Doc from org.springframework.cache.interceptor.CacheErrorHandler.handleCachePutError.

Handle the given runtime exception thrown by the cache provider when updating an item with the specified key and value, possibly rethrowing it as a fatal exception.

Parameters
exception:RuntimeException

the exception thrown by the cache provider

cache:Cache

the cache

key:Object

the key used to update the item

value:Object

the value to associate with the key

Annotations
@Override