|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.lbm.LBMRequest
public class LBMRequest
LBM Request class.
Constructor Summary | |
---|---|
LBMRequest()
Instantiate an LBM Request object |
|
LBMRequest(byte[] data,
int dataLength)
Instantiate an LBM Request object with a specified message data byte array and length. |
Method Summary | |
---|---|
void |
addResponseCallback(LBMResponseCallback cb)
Register a callback to be invoked when a response is received for this request. |
void |
addResponseCallback(LBMResponseCallback cb,
java.lang.Object cbArg)
Register a callback to be invoked when a response is received for this request. |
void |
close()
Close this request. |
byte[] |
data()
Get request data. |
void |
data(byte[] data,
int dataLength)
Set request data. |
int |
dataLength()
Get request data length |
protected void |
finalize()
|
void |
removeResponseCallback(LBMResponseCallback cb)
Deregister a request response callback |
void |
removeResponseCallback(LBMResponseCallback cb,
java.lang.Object cbArg)
Deregister a request response callback |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LBMRequest()
public LBMRequest(byte[] data, int dataLength)
data
- A byte array containing message data.dataLength
- An int representing the number of bytes in the message data.Method Detail |
---|
protected void finalize() throws LBMException
finalize
in class java.lang.Object
LBMException
public void close() throws LBMException
Warning: It is not safe to call this method from a context thread callback.
LBMException
- if any error occurs deleting the request.public byte[] data()
public int dataLength()
public void data(byte[] data, int dataLength)
data
- Data byte arraydataLength
- Length of data byte arraypublic void addResponseCallback(LBMResponseCallback cb)
cb
- Object implementing the LBMResponseCallback interfaceLBMResponseCallback
,
removeResponseCallback(com.latencybusters.lbm.LBMResponseCallback)
public void addResponseCallback(LBMResponseCallback cb, java.lang.Object cbArg)
cb
- Object implementing the LBMResponseCallback interfacecbArg
- Callback token objectLBMResponseCallback
,
removeResponseCallback(com.latencybusters.lbm.LBMResponseCallback)
public void removeResponseCallback(LBMResponseCallback cb)
cb
- Previously registered callback object implementing the
LBMResponseCallback interfaceLBMResponseCallback
,
addResponseCallback(com.latencybusters.lbm.LBMResponseCallback)
public void removeResponseCallback(LBMResponseCallback cb, java.lang.Object cbArg)
cb
- Previously registered callback object implementing the
LBMResponseCallback interfacecbArg
- Token for previously registered callbackLBMResponseCallback
,
addResponseCallback(com.latencybusters.lbm.LBMResponseCallback)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |