Example usage for org.springframework.amqp.rabbit.connection RabbitResourceHolder addDeliveryTag

List of usage examples for org.springframework.amqp.rabbit.connection RabbitResourceHolder addDeliveryTag

Introduction

In this page you can find the example usage for org.springframework.amqp.rabbit.connection RabbitResourceHolder addDeliveryTag.

Prototype

public void addDeliveryTag(Channel channel, long deliveryTag) 

Source Link

Usage

From source file:org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.java

/**
 *
 *//*from   w  w  w  .  ja va2  s .  co m*/
public static void registerDeliveryTag(ConnectionFactory connectionFactory, Channel channel, Long tag)
        throws IOException {

    Assert.notNull(connectionFactory, "ConnectionFactory must not be null");

    RabbitResourceHolder resourceHolder = (RabbitResourceHolder) TransactionSynchronizationManager
            .getResource(connectionFactory);
    if (resourceHolder != null) {
        resourceHolder.addDeliveryTag(channel, tag);
    }
}