org.jgroups.blocks
Class RequestCorrelator.Header
- RequestCorrelator
- Cloneable, Externalizable
public static class RequestCorrelator.Header
The header for RequestCorrelator messages
static int | REQ
|
static int | RSP
|
java.util.Stack | call_stack - Contains senders (e.g.
|
java.util.List | dest_mbrs - Contains a list of members who should receive the request (others will drop).
|
long | id - The id of this request to distinguish among other requests from
the same RequestCorrelator
|
String | name - The unique name of the associated RequestCorrelator
|
boolean | rsp_expected - msg is synchronous if true
|
int | type - Type of header: request or reply
|
Header() - Used for externalization
|
Header(int type, long id, boolean rsp_expected, String name)
|
REQ
public static final int REQ
RSP
public static final int RSP
call_stack
public java.util.Stack call_stack
Contains senders (e.g. P --> Q --> R)
dest_mbrs
public java.util.List dest_mbrs
Contains a list of members who should receive the request (others will drop). Ignored if null
id
public long id
The id of this request to distinguish among other requests from
the same RequestCorrelator
name
public String name
The unique name of the associated RequestCorrelator
rsp_expected
public boolean rsp_expected
msg is synchronous if true
type
public int type
Type of header: request or reply
Header
public Header()
Used for externalization
Header
public Header(int type,
long id,
boolean rsp_expected,
String name)
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 requestname
- the name of the RequestCorrelator from which
this header originates
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
Read the header from the given stream
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
Write out the header to the given stream
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.