public static class Revision.RevisionComparator extends Object implements Comparator<Revision>
| Modifier and Type | Method and Description |
|---|---|
void |
add(Revision r,
Revision seenAt)
Add the revision to the top of the queue for the given cluster node.
|
int |
compare(Revision o1,
Revision o2) |
void |
purge(long timestamp)
Forget the order of older revisions.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic void purge(long timestamp)
timestamp - the time in milliseconds (see Revision.getCurrentTimestamp())public void add(Revision r, Revision seenAt)
r - the revisionseenAt - the (local) revision where this revision was seen herepublic int compare(Revision o1, Revision o2)
compare in interface Comparator<Revision>Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.