Examples of PublisherCallbackChannel


Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannel

      // try to send to configured routing key
      routingKey = this.routingKey;
    }
    if (this.confirmCallback != null
        && channel instanceof PublisherCallbackChannel) {
      PublisherCallbackChannel publisherCallbackChannel = (PublisherCallbackChannel) channel;
      publisherCallbackChannel.addPendingConfirm(this, channel
          .getNextPublishSeqNo(), new PendingConfirm(correlationData,
          System.currentTimeMillis()));
    }
    boolean mandatory = this.returnCallback != null && this.mandatory;
    MessageProperties messageProperties = message.getMessageProperties();
View Full Code Here

Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannel

    return replyTo;
  }

  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

Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannel

    if (routingKey == null) {
      // try to send to configured routing key
      routingKey = this.routingKey;
    }
    if (this.confirmCallback != null && channel instanceof PublisherCallbackChannel) {
      PublisherCallbackChannel publisherCallbackChannel = (PublisherCallbackChannel) channel;
      publisherCallbackChannel.addPendingConfirm(this, channel.getNextPublishSeqNo(),
          new PendingConfirm(correlationData, System.currentTimeMillis()));
    }
    boolean mandatory = this.returnCallback != null &&
        this.mandatoryExpression.getValue(this.evaluationContext, message, Boolean.class);
    MessageProperties messageProperties = message.getMessageProperties();
View Full Code Here

Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannel

    return replyTo;
  }

  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.