guava-retrying
guava-retrying copied to clipboard
Make RetryListener use a generic type on the interface not on method.
trafficstars
public interface RetryListener {
<V> void onRetry(Attempt<V> var1);
}
should be:
public interface RetryListener<V> {
void onRetry(Attempt<V> var1);
}
with this change, withRetryListener would work much more naturally.
Because this is technically a breaking change also a new interface could be introduced and a new method called like withTypedRetryListener