com.rabbitmq.client.impl.recovery.RecoveredQueueNameSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amqp-client Show documentation
Show all versions of amqp-client Show documentation
The RabbitMQ Java client library allows Java applications to interface with RabbitMQ.
package com.rabbitmq.client.impl.recovery;
/**
* Functional callback interface that can be used to rename a queue during topology recovery.
* Can use along with {@link QueueRecoveryListener} to know when such a queue has been recovered successfully.
*
* @see QueueRecoveryListener
*/
@FunctionalInterface
public interface RecoveredQueueNameSupplier {
/**
* Get the queue name to use when recovering this RecordedQueue entity
* @param recordedQueue the queue to be recovered
* @return new queue name
*/
String getNameToUseForRecovery(final RecordedQueue recordedQueue);
}