public class ListCommandVersionRepairer extends Object
ListCommand.getListVersionChange() information of repaired commands.| Constructor and Description |
|---|
ListCommandVersionRepairer() |
| Modifier and Type | Method and Description |
|---|---|
void |
repairLocalCommandsVersion(Queue<ListCommand> localCommands,
ListCommand originalRemoteCommand)
Updates the versions of repaired local commands that should be resent to the server so that they are based on the
version the original remote command produced.
|
List<? extends ListCommand> |
repairRemoteCommandVersion(List<? extends ListCommand> indexRepairedRemoteCommands,
List<ListCommand> versionRepairedLocalCommands)
Updates the version of the remote commands that should be executed locally to ensure that the local list version
equals the version that is resent to the server when they are executed.
|
public void repairLocalCommandsVersion(Queue<ListCommand> localCommands, ListCommand originalRemoteCommand)
localCommands - The local commands that should be repaired. WARNING: The repaired commands are added directly
to the queue again.originalRemoteCommand - The remote command that contains the last known version of the list the server has.public List<? extends ListCommand> repairRemoteCommandVersion(List<? extends ListCommand> indexRepairedRemoteCommands, List<ListCommand> versionRepairedLocalCommands)
indexRepairedRemoteCommands - The remote commands thats indices where already repaired. This list can be empty.versionRepairedLocalCommands - The local commands that should be resent to the server thats version was already repaired by this
class. This queue must contain at least one element.Copyright © 2016 Saxonia Systems AG. All Rights Reserved.