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

Make RetryListener use a generic type on the interface not on method.

Open spjoe opened this issue 9 years ago • 0 comments
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

spjoe avatar Aug 03 '16 11:08 spjoe