public final class SimpleXid extends Object implements Xid, Comparable<SimpleXid>
| Modifier and Type | Field and Description |
|---|---|
static SimpleXid |
EMPTY
A completely empty
SimpleXid, which sorts below all other SimpleXid instances. |
static byte[] |
NO_BYTES
An empty byte array used when there is an empty XID component.
|
static SimpleXid[] |
NO_SIMPLE_XIDS
An empty
SimpleXid array. |
static Xid[] |
NO_XIDS
An empty XID array.
|
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
SimpleXid(int formatId,
byte[] gtId,
byte[] bq) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SimpleXid o) |
boolean |
equals(Object obj) |
boolean |
equals(SimpleXid obj) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
static SimpleXid |
of(Xid xid) |
SimpleXid |
withoutBranch() |
public static final byte[] NO_BYTES
public static final Xid[] NO_XIDS
public static final SimpleXid[] NO_SIMPLE_XIDS
SimpleXid array.public static final SimpleXid EMPTY
SimpleXid, which sorts below all other SimpleXid instances.public int getFormatId()
getFormatId in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic boolean equals(SimpleXid obj)
public SimpleXid withoutBranch()
public int compareTo(SimpleXid o)
compareTo in interface Comparable<SimpleXid>Copyright © 2017 JBoss by Red Hat. All rights reserved.