UM Java API  6.16.1
com.latencybusters.lbm.UMQIndexInfo Class Reference

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)
 

Constructor & Destructor Documentation

com.latencybusters.lbm.UMQIndexInfo.UMQIndexInfo ( byte[]  index,
int  length 
) throws LBMEInvalException

Creates a UMQIndexInfo object and initializes fields to the supplied values.

Parameters
indexIndex (user-specified binary data).
lengthLength of index data.
Exceptions
LBMEInvalExceptionAn invalid parameter was specified.
Since
UMQ 1.2

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.

Parameters
indexNumeric index (64-bit number).
Exceptions
LBMEInvalExceptionAn invalid parameter was specified.
Since
UMQ 1.2

References com.latencybusters.lbm.UMQIndexInfo.setNumericIndex().

Member Function Documentation

int com.latencybusters.lbm.UMQIndexInfo.flags ( )

Returns flags for the UMQIndexInfo object.

Returns
flags.
Since
UMQ 1.2
byte [] com.latencybusters.lbm.UMQIndexInfo.index ( ) throws LBMEInvalException
int com.latencybusters.lbm.UMQIndexInfo.indexLength ( ) throws LBMEInvalException

Returns length of non-numeric index.

Returns
Index length.
Exceptions
LBMEInvalExceptionif called on a numeric UMQIndexInfo object.
Since
UMQ 1.2

References com.latencybusters.lbm.LBM.UMQ_INDEX_FLAG_NUMERIC.

long com.latencybusters.lbm.UMQIndexInfo.numericIndex ( ) throws LBMEInvalException

Returns numeric index for numeric UMQIndexInfo objects.

Returns
Numeric index.
Exceptions
LBMEInvalExceptionif the index is not numeric.
Since
UMQ 1.2

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.

Parameters
indexIndex data to set.
lengthLength of index data.
Exceptions
LBMEInvalExceptionif index data is null, or index length is <= 0 or > LBM.UMQ_MAX_INDEX_LEN.
Since
UMQ 1.2

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.

Parameters
indexThe numeric index to set.
Since
UMQ 1.2

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().


The documentation for this class was generated from the following file: