UM Java API
6.16.1
|
Public Member Functions | |
LBMRequest () | |
LBMRequest (byte[] data, int dataLength) | |
void | close () throws LBMException |
byte[] | data () |
int | dataLength () |
void | data (byte[] data, int dataLength) |
void | addResponseCallback (LBMResponseCallback cb) |
void | addResponseCallback (LBMResponseCallback cb, Object cbArg) |
void | removeResponseCallback (LBMResponseCallback cb) |
void | removeResponseCallback (LBMResponseCallback cb, Object cbArg) |
Protected Member Functions | |
void | finalize () throws LBMException |
LBM Request class.
com.latencybusters.lbm.LBMRequest.LBMRequest | ( | ) |
Instantiate an LBM Request object
com.latencybusters.lbm.LBMRequest.LBMRequest | ( | byte [] | data, |
int | dataLength | ||
) |
Instantiate an LBM Request object with a specified message data byte array and length.
data | A byte array containing message data. |
dataLength | An int representing the number of bytes in the message data. |
References com.latencybusters.lbm.LBMRequest.data(), and com.latencybusters.lbm.LBMRequest.dataLength().
void com.latencybusters.lbm.LBMRequest.addResponseCallback | ( | LBMResponseCallback | cb | ) |
Register a callback to be invoked when a response is received for this request.
cb | Object implementing the LBMResponseCallback interface |
Referenced by com.latencybusters.lbm.LBMContext.send().
void com.latencybusters.lbm.LBMRequest.addResponseCallback | ( | LBMResponseCallback | cb, |
Object | cbArg | ||
) |
Register a callback to be invoked when a response is received for this request.
cb | Object implementing the LBMResponseCallback interface |
cbArg | Callback token object |
void com.latencybusters.lbm.LBMRequest.close | ( | ) | throws LBMException |
Close this request.
Warning: It is not safe to call this method from a context thread callback.
LBMException | if any error occurs deleting the request. |
Referenced by com.latencybusters.lbm.LBMRequest.finalize().
byte [] com.latencybusters.lbm.LBMRequest.data | ( | ) |
Get request data.
Referenced by com.latencybusters.lbm.LBMRequest.data(), com.latencybusters.lbm.LBMRequest.LBMRequest(), and com.latencybusters.lbm.LBMContext.send().
void com.latencybusters.lbm.LBMRequest.data | ( | byte [] | data, |
int | dataLength | ||
) |
Set request data.
data | Data byte array |
dataLength | Length of data byte array |
References com.latencybusters.lbm.LBMRequest.data(), and com.latencybusters.lbm.LBMRequest.dataLength().
int com.latencybusters.lbm.LBMRequest.dataLength | ( | ) |
Get request data length
Referenced by com.latencybusters.lbm.LBMRequest.data(), com.latencybusters.lbm.LBMRequest.LBMRequest(), and com.latencybusters.lbm.LBMContext.send().
|
protected |
This method is for internal use only, and is not supported for customer applications.
References com.latencybusters.lbm.LBMRequest.close().
void com.latencybusters.lbm.LBMRequest.removeResponseCallback | ( | LBMResponseCallback | cb | ) |
Deregister a request response callback
cb | Previously registered callback object implementing the LBMResponseCallback interface |
void com.latencybusters.lbm.LBMRequest.removeResponseCallback | ( | LBMResponseCallback | cb, |
Object | cbArg | ||
) |
Deregister a request response callback
cb | Previously registered callback object implementing the LBMResponseCallback interface |
cbArg | Token for previously registered callback |
References com.latencybusters.lbm.LBMMessage.dataBuffer(), and com.latencybusters.lbm.LBMResponseCallback.onResponse().