Clarify contract of context cache

This commit is contained in:
Dave Syer
2016-09-23 16:12:59 +01:00
parent 9a95da2b70
commit 48935e745e

View File

@@ -19,8 +19,10 @@ package org.springframework.retry.policy;
import org.springframework.retry.RetryContext;
/**
* Simple map-like abstraction for stateful retry policies to use when storing
* and retrieving {@link RetryContext} instances.
* Simple map-like abstraction for stateful retry policies to use when storing and
* retrieving {@link RetryContext} instances. A null key should never be passed in by the
* caller, but if it is then implementations are free to discard the context instead of
* saving it (null key means "no information").
*
* @author Dave Syer
*