List of usage examples for org.springframework.amqp.rabbit.connection RabbitResourceHolder addDeliveryTag
public void addDeliveryTag(Channel channel, long deliveryTag)
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); } }