[
https://issues.apache.org/jira/browse/HTTPCLIENT-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michajlo Matijkiw updated HTTPCLIENT-978:
-----------------------------------------
Attachment: cache_update_exception.diff
I have renamed HttpCacheOperationException to HttpCacheUpdateException, and it
no longer extends IOException (you will probably have to delete
HttpCacheOperationException.java after applying the patch, it should be empty).
I spoke with Jonathan Moore and it was decided that this is best since the
exception should never make it outside of the cache module, and without
extending IOException the compiler will guarantee it.
CacheConfig now has a field for maximum number of update retries, and after
that many failed update retries, EhcacheHttpCacheStorage will throw the
exception. The exception is caught by BasicHttpCache and a warning is logged.
While a failed update is not ideal, subsequent accesses will re-validate the
entry.
The tests were also updated to verify the behavior with failed updates.
This patch was submitted with the permission of my employer.
Thanks,
Michajlo
> provide an ehcache implementation for HttpCache
> -----------------------------------------------
>
> Key: HTTPCLIENT-978
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-978
> Project: HttpComponents HttpClient
> Issue Type: New Feature
> Components: Cache
> Reporter: Jonathan Moore
> Fix For: 4.1 Alpha3
>
> Attachments: cache_update_exception.diff,
> ehcache_w_serialization.patch, ehcache_w_serialization3.patch,
> httpclient-cache_ehcache-patch.patch, httpclient-cache_ehcache-patch2.patch
>
>
> Provide an implementation of the HttpCache interface that stores cache
> entries in ehcache.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]