org.jgroups.blocks

Class RequestCorrelator.Header

public static final class RequestCorrelator.Header extends Header implements Streamable

The header for RequestCorrelator messages
Field Summary
StackcallStack
Stack
.
StringcorrName
The unique name of the associated RequestCorrelator
Listdest_mbrs
Contains a list of members who should receive the request (others will drop).
longid
The id of this request to distinguish among other requests from the same RequestCorrelator
booleanrsp_expected
msg is synchronous if true
static byteREQ
static byteRSP
bytetype
Type of header: request or reply
Constructor Summary
Header()
Used for externalization
Header(byte type, long id, boolean rsp_expected, String name)
Method Summary
voidreadExternal(ObjectInput in)
voidreadFrom(DataInputStream in)
longsize()
StringtoString()
voidwriteExternal(ObjectOutput out)
voidwriteTo(DataOutputStream out)

Field Detail

callStack

public Stack callStack
Stack
. Contains senders (e.g. P --> Q --> R)

corrName

public String corrName
The unique name of the associated RequestCorrelator

dest_mbrs

public 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

rsp_expected

public boolean rsp_expected
msg is synchronous if true

REQ

public static final byte REQ

RSP

public static final byte RSP

type

public byte type
Type of header: request or reply

Constructor Detail

Header

public Header()
Used for externalization

Header

public Header(byte type, long id, boolean rsp_expected, String name)

Parameters: type type of header (REQ/RSP) id id of this header relative to ids of other requests originating from the same correlator rsp_expected whether it's a sync or async request name the name of the RequestCorrelator from which

Method Detail

readExternal

public void readExternal(ObjectInput in)

readFrom

public void readFrom(DataInputStream in)

size

public long size()

toString

public String toString()

writeExternal

public void writeExternal(ObjectOutput out)

writeTo

public void writeTo(DataOutputStream out)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.