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()
Get the transaction branch qualifier of this transaction.
|
int |
getFormatId()
Get the format identifier.
|
byte[] |
getGlobalTransactionId()
Get the global transaction id of this transaction.
|
int |
hashCode() |
static SimpleXid |
of(Xid xid) |
String |
toString() |
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()
Xid
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
Xid
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
Xid
getBranchQualifier
in interface Xid
public 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.