public class Zxid extends Object implements Comparable<Zxid>
Constructor and Description |
---|
Zxid(long epoch,
long xid) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Zxid zxid) |
boolean |
equals(Object o) |
static Zxid |
fromByteArray(byte[] bytes) |
static Zxid |
fromSimpleString(String zxid) |
long |
getEpoch() |
long |
getXid() |
static int |
getZxidLength() |
int |
hashCode() |
byte[] |
toByteArray()
Serialize this Zxid into a fixed size (8 bytes) byte array.
|
String |
toSimpleString() |
String |
toString() |
public static int getZxidLength()
public long getEpoch()
public long getXid()
public static Zxid fromByteArray(byte[] bytes) throws IOException
IOException
public byte[] toByteArray() throws IOException
IOException
- in case of an IO failurepublic int compareTo(Zxid zxid)
compareTo
in interface Comparable<Zxid>
public String toSimpleString()
Copyright © 2015. All rights reserved.