Package org.springframework.amqp.rabbit.support

Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannel.addListener()


  }

  private void addListener(Channel channel) {
    if (channel instanceof PublisherCallbackChannel) {
      PublisherCallbackChannel publisherCallbackChannel = (PublisherCallbackChannel) channel;
      SortedMap<Long, PendingConfirm> pendingConfirms = publisherCallbackChannel
          .addListener(this);
      if (!this.pendingConfirms.containsKey(channel)) {
        this.pendingConfirms.put(channel, pendingConfirms);
        if (logger.isDebugEnabled()) {
          logger.debug("Added pending confirms for " + channel
View Full Code Here


  }

  private void addListener(Channel channel) {
    if (channel instanceof PublisherCallbackChannel) {
      PublisherCallbackChannel publisherCallbackChannel = (PublisherCallbackChannel) channel;
      SortedMap<Long, PendingConfirm> pendingConfirms = publisherCallbackChannel.addListener(this);
      Channel key = channel instanceof ChannelProxy ? ((ChannelProxy) channel).getTargetChannel() : channel;
      if (this.pendingConfirms.putIfAbsent(key, pendingConfirms) == null
          && logger.isDebugEnabled()) {
        logger.debug("Added pending confirms for " + channel + " to map, size now " + this.pendingConfirms.size());
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.