org.javagroups.blocks
Class RequestCorrelator.Header
java.lang.Object
|
+--org.javagroups.Header
|
+--org.javagroups.blocks.RequestCorrelator.Header
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
- Enclosing class:
- RequestCorrelator
- public static class RequestCorrelator.Header
- extends Header
The header for RequestCorrelator messages
- See Also:
- Serialized Form
Field Summary |
java.util.Stack |
call_stack
Contains senders (e.g. |
long |
id
The id of this request to distinguish among other requests from
the same RequestCorrelator |
java.lang.String |
name
The unique name of the associated RequestCorrelator |
static int |
REQ
|
static int |
RSP
|
boolean |
rsp_expected
msg is synchronous if true |
int |
type
Type of header: request or reply |
Method Summary |
void |
readExternal(java.io.ObjectInput in)
Read the header from the given stream |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write out the header to the given stream |
Methods inherited from class org.javagroups.Header |
size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REQ
public static final int REQ
RSP
public static final int RSP
type
public int type
- Type of header: request or reply
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
name
public java.lang.String name
- The unique name of the associated RequestCorrelator
call_stack
public java.util.Stack call_stack
- Contains senders (e.g. P --> Q --> R)
RequestCorrelator.Header
public RequestCorrelator.Header()
- Used for externalization
RequestCorrelator.Header
public RequestCorrelator.Header(int type,
long id,
boolean rsp_expected,
java.lang.String name)
- Parameters:
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
toString
public java.lang.String toString()
- Overrides:
toString
in class Header
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Write out the header to the given stream
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read the header from the given stream
Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.