Skip to content

Commit

Permalink
Deprecate CachingOperationInvoker#apply
Browse files Browse the repository at this point in the history
This commit deprecates the only public accessor to
`CacheOperationInvoker` so that we can make the entire class package
private in the next feature release.

Closes gh-19089
  • Loading branch information
snicoll committed Jan 16, 2020
1 parent fc36b6b commit 421c464
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -111,7 +111,9 @@ private CachedResponse createCachedResponse(Object response, long accessTime) {
* @param timeToLive the maximum time in milliseconds that a response can be cached
* @return a caching version of the invoker or the original instance if caching is not
* required
* @deprecated as of 2.3.0 to make it package-private in 2.4
*/
@Deprecated
public static OperationInvoker apply(OperationInvoker invoker, long timeToLive) {
if (timeToLive > 0) {
return new CachingOperationInvoker(invoker, timeToLive);
Expand Down

0 comments on commit 421c464

Please sign in to comment.