public class SerializableXID extends Object implements Xid, DataSerializable
MAXBQUALSIZE, MAXGTRIDSIZE
Constructor and Description |
---|
SerializableXID() |
SerializableXID(int formatId,
byte[] globalTransactionId,
byte[] branchQualifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public SerializableXID()
public SerializableXID(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
public int getFormatId()
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.