Modifier and Type | Field and Description |
---|---|
static int |
TYPE |
Constructor and Description |
---|
Xid() |
Xid(long format,
byte[] globalId,
byte[] branchId) |
Modifier and Type | Method and Description |
---|---|
Xid |
branchId(byte[] value) |
Xid |
clearBranchId() |
Xid |
clearFormat() |
Xid |
clearGlobalId() |
Xid |
format(long value) |
byte[] |
getBranchId() |
byte |
getEncodedTrack() |
Map<String,Object> |
getFields() |
long |
getFormat() |
byte[] |
getGlobalId() |
int |
getPackWidth() |
int |
getSizeWidth() |
int |
getStructType() |
Xid |
globalId(byte[] value) |
boolean |
hasBranchId() |
boolean |
hasFormat() |
boolean |
hasGlobalId() |
boolean |
hasPayload() |
boolean |
isConnectionControl() |
void |
read(Decoder dec)
Decodes this encodable using the given decoder.
|
Xid |
setBranchId(byte[] value) |
Xid |
setFormat(long value) |
Xid |
setGlobalId(byte[] value) |
void |
write(Encoder enc)
Encodes this encodable using the given encoder.
|
public static final int TYPE
public final int getStructType()
getStructType
in class Struct
public final int getSizeWidth()
getSizeWidth
in class Struct
public final int getPackWidth()
getPackWidth
in class Struct
public final boolean hasPayload()
public final byte getEncodedTrack()
public final boolean isConnectionControl()
public final boolean hasFormat()
public final Xid clearFormat()
public final long getFormat()
public final Xid setFormat(long value)
public final Xid format(long value)
public final boolean hasGlobalId()
public final Xid clearGlobalId()
public final byte[] getGlobalId()
public final Xid setGlobalId(byte[] value)
public final Xid globalId(byte[] value)
public final boolean hasBranchId()
public final Xid clearBranchId()
public final byte[] getBranchId()
public final Xid setBranchId(byte[] value)
public final Xid branchId(byte[] value)
public void write(Encoder enc)
Encodable
public void read(Decoder dec)
Encodable
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.