protected void configureConsumerPrefetch(ConsumerInfo consumerInfo) { //If a consumer on an advisory topic and advisoryPrefetchSize has been explicitly //set then use it, else default to the prefetchSize setting if (AdvisorySupport.isAdvisoryTopic(consumerInfo.getDestination()) && configuration.getAdvisoryPrefetchSize() > 0) { consumerInfo.setPrefetchSize(configuration.getAdvisoryPrefetchSize()); } else { consumerInfo.setPrefetchSize(configuration.getPrefetchSize()); } }
protected void configureConsumerPrefetch(ConsumerInfo consumerInfo) { //If a consumer on an advisory topic and advisoryPrefetchSize has been explicitly //set then use it, else default to the prefetchSize setting if (AdvisorySupport.isAdvisoryTopic(consumerInfo.getDestination()) && configuration.getAdvisoryPrefetchSize() > 0) { consumerInfo.setPrefetchSize(configuration.getAdvisoryPrefetchSize()); } else { consumerInfo.setPrefetchSize(configuration.getPrefetchSize()); } }
protected void configureConsumerPrefetch(ConsumerInfo consumerInfo) { //If a consumer on an advisory topic and advisoryPrefetchSize has been explicitly //set then use it, else default to the prefetchSize setting if (AdvisorySupport.isAdvisoryTopic(consumerInfo.getDestination()) && configuration.getAdvisoryPrefetchSize() > 0) { consumerInfo.setPrefetchSize(configuration.getAdvisoryPrefetchSize()); } else { consumerInfo.setPrefetchSize(configuration.getPrefetchSize()); } }
protected void configureConsumerPrefetch(ConsumerInfo consumerInfo) { //If a consumer on an advisory topic and advisoryPrefetchSize has been explicitly //set then use it, else default to the prefetchSize setting if (AdvisorySupport.isAdvisoryTopic(consumerInfo.getDestination()) && configuration.getAdvisoryPrefetchSize() > 0) { consumerInfo.setPrefetchSize(configuration.getAdvisoryPrefetchSize()); } else { consumerInfo.setPrefetchSize(configuration.getPrefetchSize()); } }
protected void configureDemandSubscription(ConsumerInfo info, DemandSubscription sub) throws IOException { sub.getLocalInfo().setDispatchAsync(configuration.isDispatchAsync()); sub.getLocalInfo().setPrefetchSize(configuration.getPrefetchSize()); subscriptionMapByLocalId.put(sub.getLocalInfo().getConsumerId(), sub); subscriptionMapByRemoteId.put(sub.getRemoteInfo().getConsumerId(), sub); if (!info.isDurable()) { // This works for now since we use a VM connection to the local broker. // may need to change if we ever subscribe to a remote broker. sub.getLocalInfo().setAdditionalPredicate(createNetworkBridgeFilter(info)); } else { // need to ack this message if it is ignored as it is durable so // we check before we send. see: suppressMessageDispatch() } }
demandConsumerInfo.setPrefetchSize(configuration.getPrefetchSize()); remoteBroker.oneway(demandConsumerInfo); startedLatch.countDown();