com.latencybusters.lbm
Interface LBMSourceCostCallback
public interface LBMSourceCostCallback
Interface for the source cost callback to evaluate the cost of a newly discovered source.
Set via the context attributes setSourceCostCallback function.
Method Summary |
long |
onSourceCost(java.lang.Object cbArg,
java.lang.String topic,
LBMTransportSourceInfo transport,
long hop_count,
long cost)
Callback to determine source cost |
onSourceCost
long onSourceCost(java.lang.Object cbArg,
java.lang.String topic,
LBMTransportSourceInfo transport,
long hop_count,
long cost)
- Callback to determine source cost
- Parameters:
cbArg
- Callback object tokentopic
- Topic for which the new source was discoveredtransport
- LBMTransportSourceInfo object describing the transport sessionhop_count
- Current hop count for the transport sessioncost
- 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
All of the documentation and software included in this and any other Informatica Inc "Ultra Messaging" Release is Copyright (C) 2004-2014, Informatica Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted only as covered by the terms of a valid software license agreement with 29West Inc. Copyright © 2004-2014, Informatica, Inc. All Rights Reserved.