コード例 #1
0
 @Override
 public void subscriptionSucceeded(ValueRequirement requirement) {
   MarketDataProvider provider = _providerByRequirement.get(requirement);
   if (provider == _provider) {
     _combinedMarketDataProvider.subscriptionSucceeded(requirement);
   }
 }
コード例 #2
0
 @Override
 public void subscriptionFailed(ValueRequirement requirement, String msg) {
   MarketDataProvider provider = _providerByRequirement.get(requirement);
   if (provider == _provider) {
     _combinedMarketDataProvider.subscriptionFailed(requirement, msg);
   }
 }
コード例 #3
0
 @Override
 public void valuesChanged(Collection<ValueRequirement> requirements) {
   Map<MarketDataProvider, Set<ValueRequirement>> grouped = groupByProvider(requirements);
   Set<ValueRequirement> set = grouped.get(_provider);
   if (set != null) {
     _combinedMarketDataProvider.valuesChanged(set);
   }
 }