UM Java API 6.17.1

- Main Page
- Related Pages
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
com.latencybusters.lbm.LBMSourceCostCallback Interface Reference

## Public Member Functions
long | onSourceCost (Object cbArg, String topic, LBMTransportSourceInfo transport, long hop_count, long cost)

## Detailed Description

Interface for the source cost callback to evaluate the cost of a newly discovered source. Set via the context attributes setSourceCostCallback function.

## Member Function Documentation

long com.latencybusters.lbm.LBMSourceCostCallback.onSourceCost | ( | Object | cbArg,
|  | String | topic,
|  | LBMTransportSourceInfo | transport,
|  | long | hop_count,
|  | long | cost
| ) |  |

Callback to determine source cost

Parameters

  cbArg | Callback object token
  topic | Topic for which the new source was discovered
  transport | LBMTransportSourceInfo object describing the transport session
  hop_count | Current hop count for the transport session
  cost | Current cumulative cost for the transport session

Returns
  Application-determined cost for this source as an unsigned 32-bit number. To permanently reject this source, return LBM.LBM_SRC_COST_FUNCTION_REJECT

Referenced by com.latencybusters.lbm.LBMContext.requestTopicResolution().

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

- LBMSourceCostCallback.java