guava-retrying icon indicating copy to clipboard operation
guava-retrying copied to clipboard

RetryerBuilder having protected constructor

Open yogenyadav opened this issue 8 years ago • 2 comments

Hi, I want to extend RetryerBuilder and add a method like retryIfExceptionMessage which will retry on contents of the message.

yogenyadav avatar Jul 05 '17 22:07 yogenyadav

Best practise is extension should be done through composition, not inheritance. Are you sure you simply can't implement a StopStrategy which also is a RetryListener and register your implementation on the builder?

JensRantil avatar Jul 07 '17 05:07 JensRantil

com.github.rholder.retry.RetryerBuilder#retryIfException(com.google.common.base.Predicate<java.lang.Throwable>) this method to meet you.

smartvolshell avatar Jan 17 '18 16:01 smartvolshell