|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.Header org.jgroups.blocks.RequestCorrelator.Header
public static class RequestCorrelator.Header
The header for RequestCorrelator messages
Field Summary | |
---|---|
short |
corrId
The unique ID of the associated RequestCorrelator |
static byte |
EXC_RSP
|
long |
id
The id of this request to distinguish among other requests from the same RequestCorrelator |
static byte |
REQ
|
static byte |
RSP
|
boolean |
rsp_expected
msg is synchronous if true |
byte |
type
Type of header: request or reply |
Constructor Summary | |
---|---|
RequestCorrelator.Header()
Used for externalization |
|
RequestCorrelator.Header(byte type,
long id,
boolean rsp_expected,
short corr_id)
|
Method Summary | |
---|---|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed |
int |
size()
To be implemented by subclasses. |
java.lang.String |
toString()
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte REQ
public static final byte RSP
public static final byte EXC_RSP
public byte type
public long id
public boolean rsp_expected
public short corrId
Constructor Detail |
---|
public RequestCorrelator.Header()
public RequestCorrelator.Header(byte type, long id, boolean rsp_expected, short corr_id)
type
- type of header (REQ/RSP)id
- id of this header relative to ids of other requests
originating from the same correlatorrsp_expected
- whether it's a sync or async requestcorr_id
- The ID of the RequestCorrelator from whichMethod Detail |
---|
public java.lang.String toString()
toString
in class Header
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
public int size()
Header
size
in class Header
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |