da5fa07bd36ff74250cffda0bd58b7d03a24a997
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public testSendLotsOfMessagesButOnly3GetThrough() : void renamed to public testSendLotsOfMessagesButOnly3GetThroughWithin2Seconds() : void in class org.apache.camel.processor.ThrottlerTest | From | To | |
Rename Method public testSendLotsOfMessagesWithRejctExecution() : void renamed to public testSendLotsOfMessagesWithRejectExecution() : void in class org.apache.camel.processor.ThrottlerTest | From | To | |
Change Return Type | 1 | ||
Change Return Type long to int in method public getCurrentMaximumRequestsPerPeriod() : int in class org.apache.camel.processor.Throttler | From | To | |
Parameterize Variable | 2 | ||
Parameterize Variable resultEndpoint : MockEndpoint to receivingEndpoint : MockEndpoint in method private sendMessagesAndAwaitDelivery(messageCount int, endpointUri String, threadPoolSize int, receivingEndpoint MockEndpoint) : long in class org.apache.camel.processor.ThrottlerTest | From | To | |
Extract Method | 3 | ||
Extract Method private sendMessagesAndAwaitDelivery(messageCount int, endpointUri String, threadPoolSize int, receivingEndpoint MockEndpoint) : long extracted from public testConfigurationWithConstantExpression() : void in class org.apache.camel.processor.ThrottlerTest | From | To | |
Extract Method private sendMessagesWithHeaderExpression(executor ExecutorService, resultEndpoint MockEndpoint, throttle int, intervalMs int, messageCount int) : void extracted from public testConfigurationWithHeaderExpression() : void in class org.apache.camel.processor.ThrottlerTest | From | To | |
Extract Method private sendMessagesAndAwaitDelivery(messageCount int, endpointUri String, threadPoolSize int, receivingEndpoint MockEndpoint) : long extracted from public testSendLotsOfMessagesSimultaneouslyButOnly3GetThrough() : void in class org.apache.camel.processor.ThrottlerTest | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type timePeriodMillis : AtomicLong to timePeriodMillis : long in class org.apache.camel.processor.Throttler | From | To | |
Rename Parameter | 1 | ||
Rename Parameter shutdownExecutorService : boolean to shutdownAsyncExecutor : boolean in method public Throttler(camelContext CamelContext, processor Processor, maxRequestsPerPeriodExpression Expression, timePeriodMillis long, asyncExecutor ExecutorService, shutdownAsyncExecutor boolean, rejectExecution boolean) in class org.apache.camel.processor.Throttler | From | To |