946bed674bfc4fff9b36f0a600231adf8047b939
Files Diff
- Added: 4
- Removed: 2
- Renamed: 0
- Modified: 13
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public retryWhen(result T) : RetryPolicy renamed to public retryFor(result Object) : RetryPolicy in class net.jodah.recurrent.RetryPolicy | From | To | |
Push Down Method | 7 | ||
Push Down Method public complete(result Object, failure Throwable) : boolean from class net.jodah.recurrent.Invocation to public complete(result Object, failure Throwable) : boolean from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Method public retry() : boolean from class net.jodah.recurrent.Invocation to public retry() : boolean from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Method private retryOrFail(result Object, failure Throwable, checkArgs boolean) : boolean from class net.jodah.recurrent.Invocation to private retryInternal(result Object, failure Throwable) : boolean from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Method package retryOrComplete(result Object, failure Throwable) : void from class net.jodah.recurrent.Invocation to package retryOrComplete(result Object, failure Throwable) : void from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Method public retryOn(failure Throwable) : boolean from class net.jodah.recurrent.Invocation to public retryOn(failure Throwable) : boolean from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Method private retry(result Object, failure Throwable, checkArgs boolean) : boolean from class net.jodah.recurrent.Invocation to private retry(result Object, failure Throwable) : boolean from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Method package reset() : void from class net.jodah.recurrent.Invocation to package reset() : void from class net.jodah.recurrent.AsyncInvocation | From | To | |
Extract Subclass | 1 | ||
Extract Subclass net.jodah.recurrent.AsyncInvocation from class net.jodah.recurrent.Invocation | From | To | |
Change Parameter Type | 2 | ||
Change Parameter Type result : T to result : Object in method public retryFor(result Object) : RetryPolicy in class net.jodah.recurrent.RetryPolicy | From | To | |
Change Parameter Type invocation : Invocation to invocation : AsyncInvocation in method package initialize(invocation AsyncInvocation) : void in class net.jodah.recurrent.AsyncCallable | From | To | |
Move Method | 3 | ||
Move Method package adjustForMaxDuration() : void from class net.jodah.recurrent.RetryStats to private adjustForMaxDuration() : void from class net.jodah.recurrent.Invocation | From | To | |
Move Method package adjustForBackoffs() : void from class net.jodah.recurrent.RetryStats to private adjustForBackoffs() : void from class net.jodah.recurrent.Invocation | From | To | |
Move Method package isPolicyExceeded() : boolean from class net.jodah.recurrent.RetryStats to private isPolicyExceeded() : boolean from class net.jodah.recurrent.Invocation | From | To | |
Push Down Attribute | 4 | ||
Push Down Attribute package retried : boolean from class net.jodah.recurrent.Invocation to package retried : boolean from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Attribute private callable : AsyncCallable<Object> from class net.jodah.recurrent.Invocation to private callable : AsyncCallable<Object> from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Attribute private scheduler : Scheduler from class net.jodah.recurrent.Invocation to private scheduler : Scheduler from class net.jodah.recurrent.AsyncInvocation | From | To | |
Push Down Attribute private future : RecurrentFuture<Object> from class net.jodah.recurrent.Invocation to private future : RecurrentFuture<Object> from class net.jodah.recurrent.AsyncInvocation | From | To | |
Move Attribute | 3 | ||
Move Attribute package waitTime : long from class net.jodah.recurrent.RetryStats to package waitTime : long from class net.jodah.recurrent.Invocation | From | To | |
Move Attribute package retryPolicy : RetryPolicy from class net.jodah.recurrent.RetryStats to package retryPolicy : RetryPolicy from class net.jodah.recurrent.Invocation | From | To | |
Move Attribute private startTime : long from class net.jodah.recurrent.RetryStats to private startTime : long from class net.jodah.recurrent.Invocation | From | To | |
Rename Attribute | 3 | ||
Rename Attribute scheduler : Scheduler to waitTime : long in class net.jodah.recurrent.Invocation | From | To | |
Rename Attribute callable : AsyncCallable<Object> to startTime : long in class net.jodah.recurrent.Invocation | From | To | |
Rename Attribute future : RecurrentFuture<Object> to retryPolicy : RetryPolicy in class net.jodah.recurrent.Invocation | From | To | |
Change Variable Type | 1 | ||
Change Variable Type stats : RetryStats to stats : Invocation in method private call(callable Callable<T>, retryPolicy RetryPolicy) : T in class net.jodah.recurrent.Recurrent | From | To | |
Change Attribute Type | 4 | ||
Change Attribute Type callable : AsyncCallable<Object> to startTime : long in class net.jodah.recurrent.Invocation | From | To | |
Change Attribute Type future : RecurrentFuture<Object> to retryPolicy : RetryPolicy in class net.jodah.recurrent.Invocation | From | To | |
Change Attribute Type scheduler : Scheduler to waitTime : long in class net.jodah.recurrent.Invocation | From | To | |
Change Attribute Type invocation : Invocation to invocation : AsyncInvocation in class net.jodah.recurrent.AsyncCallable | From | To |