@Override
 public void processMessagePull(MessagePull messagePull) throws Exception {
   AMQConsumer amqConsumer = consumerMap.get(messagePull.getDestination());
   if (amqConsumer != null) {
     amqConsumer.processMessagePull(messagePull);
   }
 }
  public void processMessagePull(MessagePull messagePull) throws Exception {
    windowAvailable.incrementAndGet();

    if (messagePullHandler != null) {
      messagePullHandler.nextSequence(messagePullSequence++, messagePull.getTimeout());
    }
  }
 @Override
 public Response processMessagePull(MessagePull arg0) throws Exception {
   AMQConsumerBrokerExchange amqConsumerBrokerExchange =
       consumerExchanges.get(arg0.getConsumerId());
   if (amqConsumerBrokerExchange == null) {
     throw new IllegalStateException("Consumer does not exist");
   }
   amqConsumerBrokerExchange.processMessagePull(arg0);
   return null;
 }
Exemplo n.º 4
0
 @Override
 public Response messagePull(ConnectionContext context, MessagePull pull) throws Exception {
   if (isLogAll() || isLogConsumerEvents()) {
     LOG.info(
         "Message Pull from: {} on {}",
         context.getClientId(),
         pull.getDestination().getPhysicalName());
   }
   return super.messagePull(context, pull);
 }