9ef2eb132e9e6f6ca7f5978d976f2362f5463da1
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 10
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Merge Attribute | 1 | ||
Merge Attribute [voteState : StateStorage<VoteState>, heartbeatInterval : long, renewableTimeoutService : RenewableTimeoutService, clock : Clock] to voteStateStorage : StateStorage<VoteState> in class org.neo4j.causalclustering.core.consensus.RaftMachineBuilder | From | To | |
Move Method | 2 | ||
Move Method private renewing(action ThrowingAction<Exception>) : TimeoutHandler from class org.neo4j.causalclustering.core.consensus.RaftMachine to private renewing(action ThrowingAction<Exception>) : RenewableTimeoutService.TimeoutHandler from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Method private randomTimeoutRange() : long from class org.neo4j.causalclustering.core.consensus.RaftMachine to private randomTimeoutRange() : long from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Change Return Type | 1 | ||
Change Return Type TimeoutHandler to RenewableTimeoutService.TimeoutHandler in method private renewing(action ThrowingAction<Exception>) : RenewableTimeoutService.TimeoutHandler in class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute | 7 | ||
Move Attribute private renewableTimeoutService : RenewableTimeoutService from class org.neo4j.causalclustering.core.consensus.RaftMachine to private renewableTimeoutService : RenewableTimeoutService from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute private lastElectionRenewalMillis : long from class org.neo4j.causalclustering.core.consensus.RaftMachine to private lastElectionRenewalMillis : long from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute private heartbeatInterval : long from class org.neo4j.causalclustering.core.consensus.RaftMachine to private heartbeatInterval : long from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute private electionTimer : RenewableTimeoutService.RenewableTimeout from class org.neo4j.causalclustering.core.consensus.RaftMachine to private electionTimer : RenewableTimeoutService.RenewableTimeout from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute private clock : Clock from class org.neo4j.causalclustering.core.consensus.RaftMachine to private clock : Clock from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute private heartbeatTimer : RenewableTimeoutService.RenewableTimeout from class org.neo4j.causalclustering.core.consensus.RaftMachine to private heartbeatTimer : RenewableTimeoutService.RenewableTimeout from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Move Attribute private electionTimeout : long from class org.neo4j.causalclustering.core.consensus.RaftMachine to private electionTimeout : long from class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Extract Class | 1 | ||
Extract Class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers from class org.neo4j.causalclustering.core.consensus.RaftMachine | From | To | |
Extract Method | 1 | ||
Extract Method package getElectionTimeout() : long extracted from private randomTimeoutRange() : long in class org.neo4j.causalclustering.core.consensus.LeaderAvailabilityTimers | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type termState : StateStorage<TermState> to termState : TermState in class org.neo4j.causalclustering.core.consensus.RaftMachineBuilder | From | To |