UM .NET API
6.16.1
|
Public Member Functions | |
LBMRequest () | |
Instantiate an LBM Request object. | |
LBMRequest (byte[] data, int dataLength) | |
Instantiate an LBM Request object. More... | |
void | close () |
Close and dispose of this request. More... | |
byte[] | data () |
Get request data. More... | |
int | dataLength () |
Get request data length. More... | |
void | data (byte[] data, int dataLength) |
Set request data. More... | |
void | addResponseCallback (LBMResponseCallback cb) |
Register a callback to be invoked when a response is received for this request. More... | |
void | addResponseCallback (LBMResponseCallback cb, Object cbArg) |
Register a callback to be invoked when a response is received for this request. More... | |
void | removeResponseCallback (LBMResponseCallback cb) |
Deregister a request response callback. More... | |
void | removeResponseCallback (LBMResponseCallback cb, object cbArg) |
Deregister a request response callback. More... | |
void | setObjectRecycler (LBMObjectRecyclerBase objRec, Object objRecCbArg) |
Set the LBM object recycler that can be used by the context to reuse LBMMessage objects as well as LBM Context/Receiver/Source Statistics objects. More... | |
void | Dispose () |
Same as close. More... | |
LBM Request class.
com.latencybusters.lbm.LBMRequest.LBMRequest | ( | byte [] | data, |
int | dataLength | ||
) |
Instantiate an LBM Request object.
data | Data to be sent with the request |
dataLength | Data length |
void com.latencybusters.lbm.LBMRequest.addResponseCallback | ( | LBMResponseCallback | cb | ) |
Register a callback to be invoked when a response is received for this request.
cb | Callback implementing the LBMResponseCallback delegate interface |
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 | Callback implementing the LBMResponseCallback delegate interface |
cbArg | Callback token object |
void com.latencybusters.lbm.LBMRequest.close | ( | ) |
Close and dispose of this request.
Warning: It is not safe to call this method from a context thread callback.
com.latencybusters.lbm.LBMException | Invalid argument or unexpected operational behavior has been encountered by unmanaged LBM C layer function. |
References com.latencybusters.lbm.LBM.errorMessage(), and com.latencybusters.lbm.LBM.errorNumber().
byte [] com.latencybusters.lbm.LBMRequest.data | ( | ) |
Get request data.
Referenced by com.latencybusters.lbm.LBMSource.send(), 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 |
int com.latencybusters.lbm.LBMRequest.dataLength | ( | ) |
Get request data length.
Referenced by com.latencybusters.lbm.LBMSource.send(), and com.latencybusters.lbm.LBMContext.send().
void com.latencybusters.lbm.LBMRequest.Dispose | ( | ) |
Same as close.
com.latencybusters.lbm.LBMException | Invalid argument or unexpected operational behavior has been encountered by unmanaged LBM C layer function. |
References com.latencybusters.lbm.LBM.errorMessage(), and com.latencybusters.lbm.LBM.errorNumber().
void com.latencybusters.lbm.LBMRequest.removeResponseCallback | ( | LBMResponseCallback | cb | ) |
Deregister a request response callback.
cb | Previously registered callback implementing the LBMResponseCallback delegate interface |
void com.latencybusters.lbm.LBMRequest.removeResponseCallback | ( | LBMResponseCallback | cb, |
object | cbArg | ||
) |
Deregister a request response callback.
cb | Previously registered callback implementing the LBMResponseCallback delegate interface |
cbArg | Token for previously registered callback |
References com.latencybusters.lbm.LBMResponseCallback(), and com.latencybusters.lbm.LBMObjectRecyclerBase.retrieveMessage().
void com.latencybusters.lbm.LBMRequest.setObjectRecycler | ( | LBMObjectRecyclerBase | objRec, |
Object | objRecCbArg | ||
) |
Set the LBM object recycler that can be used by the context to reuse LBMMessage objects as well as LBM Context/Receiver/Source Statistics objects.
objRec | an LBM object recycler that will be called when objects need to be retrieved |
objRecCbArg | a callback object token that will be passed in the retrieve method |