The constructor for the SimpleRetryPolicy
allows you to specify which exceptions are retryable. Great!
However, this input is a map where the key is the class of the Throwable, and the value is a boolean. There isn't any documentation on what this boolean value is used for- does anyone here know?
Essentially, it populates an instance of a SubclassClassifier
whose documentation is too difficult for my simple mind to understand:
A Classifier for a parameterised object type based on a map. Classifies objects according to their inheritance relation with the supplied type map. If the object to be classified is one of the keys of the provided map, or is a subclass of one of the keys, then the map entry value for that key is returned. Otherwise returns the default value which is null by default.