public class Revision extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Revision.RevisionComparator
A facility that is able to compare revisions of different cluster instances.
|
| Constructor and Description |
|---|
Revision(long timestamp,
int counter,
int clusterId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static Revision |
fromString(String rev) |
int |
getClusterId() |
int |
getCounter() |
static long |
getCurrentTimestamp()
Get the timestamp value of the current date and time.
|
long |
getTimestamp() |
static long |
getTimestampDifference(long a,
long b)
Get the difference between two timestamps (a - b) in milliseconds.
|
int |
hashCode() |
String |
toString() |
public static long getCurrentTimestamp()
public static long getTimestampDifference(long a,
long b)
a - the first timestampb - the second timestamppublic long getTimestamp()
public int getCounter()
public int getClusterId()
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.