TML Messaging Suite  1.1.5
for Java
 All Classes Namespaces Functions Variables Groups Pages
void com.tmlsidex.tml.TMLProfile.registerBalBusyStatusRequestHandler ( TMLBalBusyStatusRequestHandlerIF  cbInstance,
Object  pCBData 
) throws TmlSidexException

register balancer busy status request handler

To implement a custom load balancing instead of a round robin the status request handler can collect and return host specifc data. The data is added to the TML command passed to the handler function. On sender side the data is collected and passed to a load balance calculation handler that will return the index of the next registered peer to call. If either the busy status request handler or the load balancing calculation handler is not implemented round robin will be used.

cbInstanceinstance of an implementation of the callback method interface / set null for deregistration
pCBDatacustom data or null
See also
TMLProfile::registerBalCalculationHandler(TMLBalCalculationHandlerIF, Object)