| File was renamed from opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDBCursorComparator.java |
| | |
| | | |
| | | /** |
| | | * This class defines a {@link Comparator} that allows to know which |
| | | * {@link ReplicationDBCursor} contain the next {@link UpdateMsg} in the order |
| | | * {@link ReplicaDBCursor} contain the next {@link UpdateMsg} in the order |
| | | * defined by the {@link ChangeNumber} of the {@link UpdateMsg}. |
| | | */ |
| | | public class ReplicationDBCursorComparator |
| | | implements Comparator<ReplicationDBCursor> |
| | | public class ReplicaDBCursorComparator implements Comparator<ReplicaDBCursor> |
| | | { |
| | | /** |
| | | * Compare the {@link ChangeNumber} of the {@link ReplicationDBCursor}. |
| | | * Compare the {@link ChangeNumber} of the {@link ReplicaDBCursor}. |
| | | * |
| | | * @param o1 |
| | | * first cursor. |
| | |
| | | * @return result of the comparison. |
| | | */ |
| | | @Override |
| | | public int compare(ReplicationDBCursor o1, ReplicationDBCursor o2) |
| | | public int compare(ReplicaDBCursor o1, ReplicaDBCursor o2) |
| | | { |
| | | ChangeNumber csn1 = o1.getChange().getChangeNumber(); |
| | | ChangeNumber csn2 = o2.getChange().getChangeNumber(); |