TML Messaging Suite  1.1.5
for Java
 All Classes Namespaces Functions Variables Groups Pages
int com.tmlsidex.jni.TmlJniBalCalculationHandlerIF.jniBalCalculateNextReceiverCB ( int  iCountOfDestinations,
long[]  listenerBusyStateArray,
Object  cbData,
int[]  iNextIndex 
)

calculate next peer index for balancing handler method

See also
Tml::tml_Bal_Set_OnCalculation(long, String, TmlJniBalCalculationHandlerIF, Object)
Parameters
iCountOfDestinationsnumber of possibleDestinations
listenerBusyStateArrayarray of iDestinationCount TML command handles
cbDatacustom data from handler registration or null
iNextIndexarray of int to return the index of the next command receiver written into the first array element. If -1 fallback to round robin
Returns
TmlErr.TML_SUCCESS on success, otherwise TmlErr.TML_ERR_INFORMATION_UNDEFINED

Implemented in com.tmlsidex.tml.TMLProfile.