UM Java API
6.16.1
|
Public Member Functions | |
long | onSourceCost (Object cbArg, String topic, LBMTransportSourceInfo transport, long hop_count, long cost) |
Interface for the source cost callback to evaluate the cost of a newly discovered source. Set via the context attributes setSourceCostCallback function.
long com.latencybusters.lbm.LBMSourceCostCallback.onSourceCost | ( | Object | cbArg, |
String | topic, | ||
LBMTransportSourceInfo | transport, | ||
long | hop_count, | ||
long | cost | ||
) |
Callback to determine source cost
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 |
Referenced by com.latencybusters.lbm.LBMContext.requestTopicResolution().