public class Request
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Broker |
broker |
protected POPBuffer |
buffer |
protected int |
classId |
protected ComboxConnection |
combox |
protected int |
methodId |
static int |
PENDING |
protected ComboxReceiveRequest |
receivedCombox |
protected POPRemoteCaller |
remoteCaller |
protected int |
requestId |
protected int |
semantics |
static int |
SERVED |
static int |
SERVING |
protected int |
status |
| Constructor and Description |
|---|
Request()
Creating a new pending request
|
| Modifier and Type | Method and Description |
|---|---|
Broker |
getBroker()
Get the associated borker
|
POPBuffer |
getBuffer()
Get the associated buffer
|
int |
getClassId()
Get the class identifier of the current request
|
ComboxConnection |
getConnection()
Get the associated combox
|
int |
getMethodId()
Get the method identifier of this request
|
ComboxReceiveRequest |
getReceiveCombox()
Get the combox which received the request
|
POPRemoteCaller |
getRemoteCaller()
Return from where the call to this request come from
|
int |
getRequestID() |
RequestQueue |
getRequestQueue() |
int |
getSenmatics()
Get the semantic of the current request
|
int |
getStatus()
Get the request current status
|
boolean |
isConcurrent()
Returns true if this request is a concurrent request, false otherwise
|
boolean |
isMutex()
Returns true if this request is a mutex request, false otherwise
|
boolean |
isSequential()
Returns true if this request is a sequential request, false otherwise
|
boolean |
isSynchronous()
Returns true if this request is a synchronous request, false if asynchronous
|
void |
setBroker(Broker broker)
Set an associated broker
|
void |
setBuffer(POPBuffer buffer)
Set an associated buffer
|
void |
setBufferType(java.lang.String bufferType)
Set associated buffer
|
void |
setClassId(int classId)
Set the class identifier of the current request
|
void |
setCombox(ComboxConnection combox)
Set the associated combox
|
void |
setMethodId(int methodId)
Set the method identifier of the current request
|
void |
setReceiveCombox(ComboxReceiveRequest combox)
Get the combox which received the request
|
void |
setRemoteCaller(POPRemoteCaller callSource) |
void |
setRequestID(int requestId) |
void |
setSenmatics(int semantics)
Set the semantic of the current request
|
void |
setStatus(int status)
Set the current status of the request
|
public static final int PENDING
public static final int SERVING
public static final int SERVED
protected int classId
protected int methodId
protected int semantics
protected int requestId
protected Broker broker
protected POPBuffer buffer
protected ComboxReceiveRequest receivedCombox
protected ComboxConnection combox
protected int status
protected POPRemoteCaller remoteCaller
public int getClassId()
public void setClassId(int classId)
classId - Class ID to be setpublic int getMethodId()
public void setMethodId(int methodId)
methodId - Method ID to be setpublic void setRequestID(int requestId)
public int getRequestID()
public int getSenmatics()
public void setSenmatics(int semantics)
semantics - Semantic to be set on the current request as an int valuepublic Broker getBroker()
public void setBroker(Broker broker)
broker - Reference to the associated broker to be setpublic POPBuffer getBuffer()
public void setBuffer(POPBuffer buffer)
buffer - Reference to the associated bufferpublic int getStatus()
public void setStatus(int status)
status - Status to be setpublic ComboxReceiveRequest getReceiveCombox()
public void setReceiveCombox(ComboxReceiveRequest combox)
combox - Combox which received the requestpublic ComboxConnection getConnection()
public void setCombox(ComboxConnection combox)
combox - Combox to be associatepublic void setBufferType(java.lang.String bufferType)
bufferType - BufferType to be associatepublic boolean isSynchronous()
public boolean isConcurrent()
public boolean isMutex()
public boolean isSequential()
public POPRemoteCaller getRemoteCaller()
public void setRemoteCaller(POPRemoteCaller callSource)
public RequestQueue getRequestQueue()