Examples of PendingConfirm


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

          .entrySet()) {
        SortedMap<Long, PendingConfirm> channelPendingConfirms = channelPendingConfirmEntry
            .getValue();
        Iterator<Entry<Long, PendingConfirm>> iterator = channelPendingConfirms
            .entrySet().iterator();
        PendingConfirm pendingConfirm;
        while (iterator.hasNext()) {
          pendingConfirm = iterator.next().getValue();
          if (pendingConfirm.getTimestamp() < threshold) {
            unconfirmed.add(pendingConfirm.getCorrelationData());
            iterator.remove();
          } else {
            break;
          }
        }
View Full Code Here

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

    }
    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();
    if (mandatory) {
View Full Code Here

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

    synchronized (this.pendingConfirms) {
      long threshold = System.currentTimeMillis() - age;
      for (Entry<Object, SortedMap<Long, PendingConfirm>> channelPendingConfirmEntry : this.pendingConfirms.entrySet()) {
        SortedMap<Long, PendingConfirm> channelPendingConfirms = channelPendingConfirmEntry.getValue();
        Iterator<Entry<Long, PendingConfirm>> iterator = channelPendingConfirms.entrySet().iterator();
        PendingConfirm pendingConfirm;
        while (iterator.hasNext()) {
          pendingConfirm = iterator.next().getValue();
          if (pendingConfirm.getTimestamp() < threshold) {
            unconfirmed.add(pendingConfirm.getCorrelationData());
            iterator.remove();
          }
          else {
            break;
          }
View Full Code Here

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

      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();
    if (mandatory) {
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.