|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.Header lumis.portal.cluster.multiserver.ClusterTransmissionHeader
public class ClusterTransmissionHeader
Header used to store some control information about a IClusterTransmission
.
Some data available in the IClusterTransmission
is also stored in this
header to prevent the need to deserialize the message to read them.
Field Summary | |
---|---|
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. |
Fields inherited from class org.jgroups.Header |
---|
HDR_OVERHEAD |
Constructor Summary | |
---|---|
ClusterTransmissionHeader()
Creates a header with default values. |
|
ClusterTransmissionHeader(IClusterTransmission clusterTransmission)
Creates a header initialized according to the given IClusterTransmission . |
Method Summary | |
---|---|
byte |
getFlags()
Returns the flags set in this header. |
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 |
readExternal(ObjectInput in)
|
void |
readFrom(DataInputStream in)
|
int |
size()
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
void |
writeTo(DataOutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte FLAG_TOTAL_ORDER
getFlags()
,
Constant Field Valuespublic static final byte FLAG_DURABLE
getFlags()
,
Constant Field Valuespublic static final String HEADER_NAME
Constructor Detail |
---|
public ClusterTransmissionHeader()
public ClusterTransmissionHeader(IClusterTransmission clusterTransmission)
IClusterTransmission
.
clusterTransmission
- the cluster message.Method Detail |
---|
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 readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
readFrom
in interface org.jgroups.util.Streamable
IOException
IllegalAccessException
InstantiationException
public void writeTo(DataOutputStream out) throws IOException
writeTo
in interface org.jgroups.util.Streamable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |