public final class ComboxReceiveRequest
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
ABORT |
protected Broker |
broker |
protected ComboxConnection |
combox |
static int |
EXIT |
protected RequestQueue |
requestQueue |
static int |
RUNNING |
protected int |
status |
| Constructor and Description |
|---|
ComboxReceiveRequest(Broker broker,
RequestQueue requestQueue,
ComboxConnection combox)
Crate a new instance of ComboxReceiveRequestSocket
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current connection
|
protected void |
finalize()
Method called before destruction of the instance
|
RequestQueue |
getRequestQueue()
Get server socket request queue
|
int |
getStatus()
Get the status of the current connection
|
boolean |
receiveRequest(Request request)
Get request from the buffer
|
void |
run()
Start the thread
|
void |
setBuffer(java.lang.String bufferType)
Associate a buffer with this receiving combox
|
void |
setStatus(int status)
Set the current status
|
public static final int RUNNING
public static final int EXIT
public static final int ABORT
protected ComboxConnection combox
protected final RequestQueue requestQueue
protected final Broker broker
protected int status
public ComboxReceiveRequest(Broker broker, RequestQueue requestQueue, ComboxConnection combox)
broker - The associated brokerrequestQueue - The associated request queuecombox - The associated comboxpublic void run()
run in interface java.lang.Runnablepublic boolean receiveRequest(Request request)
request - The requestpublic void close()
public int getStatus()
public void setStatus(int status)
status - The new statuspublic void setBuffer(java.lang.String bufferType)
bufferType - Type of the bufferpublic RequestQueue getRequestQueue()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable