简体   繁体   中英

Gemfire Exception handling

I have a Local Cache which is caching data from a web service. If suppose the web service is down, then definitely there is an exception thrown. I would like to handle this exception and return previously cached values from the method. Can any one tell me, Does Gemfire has any such exception handling feature to handle such exceptions? Im using annotation based caching.

I'm assuming you are referring to the Spring @Cacheable capability. With that framework, the cache is checked first so, if there is an answer in the cache it will not call the web service at all (so it won't matter whether it is up or down).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM