public class ClusterTransmissionHeader
extends org.jgroups.Header
IClusterTransmission
.
Some data available in the IClusterTransmission
is also stored in this
header to prevent the need to deserialize the message to read them.Modifier and Type | Field and Description |
---|---|
static byte |
FLAG_DURABLE
Bit used to indicate durable.
|
static byte |
FLAG_TOTAL_ORDER
Bit used to indicate total order.
|
static String |
HEADER_NAME
The name used to store this header.
|
static short |
MAGIC_ID |
Constructor and Description |
---|
ClusterTransmissionHeader()
Creates a header with default values.
|
ClusterTransmissionHeader(IClusterTransmission clusterTransmission)
Creates a header initialized according to the given
IClusterTransmission . |
Modifier and Type | Method and Description |
---|---|
java.util.function.Supplier<? extends org.jgroups.Header> |
create() |
byte |
getFlags()
Returns the flags set in this header.
|
short |
getMagicId() |
String |
getTransmissionId()
Returns the unique identifier of the transmission for which this header belongs.
|
long |
getTransmissionOrder()
Returns the transmission order generated for the corresponding transmission.
|
void |
readFrom(DataInput in) |
int |
serializedSize() |
int |
size() |
String |
toString() |
void |
writeTo(DataOutput out) |
public static final byte FLAG_TOTAL_ORDER
getFlags()
,
Constant Field Valuespublic static final byte FLAG_DURABLE
getFlags()
,
Constant Field Valuespublic static final short MAGIC_ID
public static final String HEADER_NAME
public ClusterTransmissionHeader()
public ClusterTransmissionHeader(IClusterTransmission clusterTransmission)
IClusterTransmission
.clusterTransmission
- the cluster message.public String getTransmissionId()
public byte getFlags()
public long getTransmissionOrder()
public int size()
size
in class org.jgroups.Header
public String toString()
toString
in class org.jgroups.Header
public void readFrom(DataInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void writeTo(DataOutput out) throws IOException
IOException
public int serializedSize()
public java.util.function.Supplier<? extends org.jgroups.Header> create()
public short getMagicId()
getMagicId
in class org.jgroups.Header
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.