UM Java API
6.16.1
|
Public Member Functions | |
UMQIndexInfo (byte[] index, int length) throws LBMEInvalException | |
UMQIndexInfo (long index) | |
int | flags () |
byte[] | index () throws LBMEInvalException |
long | numericIndex () throws LBMEInvalException |
int | indexLength () throws LBMEInvalException |
void | setIndex (byte[] index, int length) throws LBMEInvalException |
void | setNumericIndex (long index) |
com.latencybusters.lbm.UMQIndexInfo.UMQIndexInfo | ( | byte[] | index, |
int | length | ||
) | throws LBMEInvalException |
Creates a UMQIndexInfo object and initializes fields to the supplied values.
index | Index (user-specified binary data). |
length | Length of index data. |
LBMEInvalException | An invalid parameter was specified. |
References com.latencybusters.lbm.UMQIndexInfo.index(), and com.latencybusters.lbm.UMQIndexInfo.setIndex().
com.latencybusters.lbm.UMQIndexInfo.UMQIndexInfo | ( | long | index | ) |
Creates a numeric UMQIndexInfo object and initializes fields to the supplied values.
index | Numeric index (64-bit number). |
LBMEInvalException | An invalid parameter was specified. |
References com.latencybusters.lbm.UMQIndexInfo.setNumericIndex().
int com.latencybusters.lbm.UMQIndexInfo.flags | ( | ) |
byte [] com.latencybusters.lbm.UMQIndexInfo.index | ( | ) | throws LBMEInvalException |
Returns index for non-numeric UMQIndexInfo objects.
LBMEInvalException | if the index is numeric. |
References com.latencybusters.lbm.LBM.UMQ_INDEX_FLAG_NUMERIC.
Referenced by com.latencybusters.lbm.UMQIndexInfo.setIndex(), com.latencybusters.lbm.UMQIndexInfo.setNumericIndex(), and com.latencybusters.lbm.UMQIndexInfo.UMQIndexInfo().
int com.latencybusters.lbm.UMQIndexInfo.indexLength | ( | ) | throws LBMEInvalException |
Returns length of non-numeric index.
LBMEInvalException | if called on a numeric UMQIndexInfo object. |
References com.latencybusters.lbm.LBM.UMQ_INDEX_FLAG_NUMERIC.
long com.latencybusters.lbm.UMQIndexInfo.numericIndex | ( | ) | throws LBMEInvalException |
Returns numeric index for numeric UMQIndexInfo objects.
LBMEInvalException | if the index is not numeric. |
References com.latencybusters.lbm.LBM.UMQ_INDEX_FLAG_NUMERIC.
void com.latencybusters.lbm.UMQIndexInfo.setIndex | ( | byte[] | index, |
int | length | ||
) | throws LBMEInvalException |
Sets non-numeric index to given data.
index | Index data to set. |
length | Length of index data. |
LBMEInvalException | if index data is null, or index length is <= 0 or > LBM.UMQ_MAX_INDEX_LEN. |
References com.latencybusters.lbm.UMQIndexInfo.index(), com.latencybusters.lbm.LBM.UMQ_INDEX_FLAG_NUMERIC, and com.latencybusters.lbm.LBM.UMQ_MAX_INDEX_LEN.
Referenced by com.latencybusters.lbm.LBMMessage.queueIndexInfo(), and com.latencybusters.lbm.UMQIndexInfo.UMQIndexInfo().
void com.latencybusters.lbm.UMQIndexInfo.setNumericIndex | ( | long | index | ) |
Sets the numeric index value of a numeric UMQIndexInfo object.
index | The numeric index to set. |
References com.latencybusters.lbm.UMQIndexInfo.index(), and com.latencybusters.lbm.LBM.UMQ_INDEX_FLAG_NUMERIC.
Referenced by com.latencybusters.lbm.LBMMessage.queueIndexInfo(), and com.latencybusters.lbm.UMQIndexInfo.UMQIndexInfo().