-
- All Superinterfaces:
java.io.Serializable
public interface NamingStrategy extends java.io.SerializableContract to control the name of AMQP entities (exchanges, queues).Naming is considered an implementation details of RabbitMQ JMS, so this interface and its methods can change at any time between releases.
A custom implementation can be used to customize the name of some entities (e.g. for security reasons), but implementators must be prepared to API changes.
- Since:
- 3.4.0
- See Also:
RMQConnectionFactory.setNamingStrategy(NamingStrategy)
-
-
Field Summary
Fields Modifier and Type Field Description static NamingStrategyDEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringdurableSubscriberTopicSelectorExchangePrefix()Prefix for the selector exchange name of durable topic subscribers.java.lang.StringnonDurableSubscriberTopicSelectorExchangePrefix()Prefix for the selector exchange name of non-durable topic subscribers.java.lang.StringqueueExchangeName()Name of the exchange for non-temporary queues.java.lang.StringtemporaryQueueExchangeName()Name of the exchange for temporary queues.java.lang.StringtemporaryQueuePrefix()Prefix for the AMQP queue name of temporary queues.java.lang.StringtemporaryTopicExchangeName()Name of the exchange for temporary topics.java.lang.StringtemporaryTopicPrefix()Prefix for the AMQP queue name of temporary topics.java.lang.StringtopicExchangeName()Name of the exchange for non-temporary topics.java.lang.StringtopicSubscriberQueuePrefix()Prefix for the AMQP queue name of topic subscribers.
-
-
-
Field Detail
-
DEFAULT
static final NamingStrategy DEFAULT
-
-
Method Detail
-
topicExchangeName
java.lang.String topicExchangeName()
Name of the exchange for non-temporary topics.- Returns:
- exchange name
-
temporaryTopicExchangeName
java.lang.String temporaryTopicExchangeName()
Name of the exchange for temporary topics.- Returns:
- exchange name
-
queueExchangeName
java.lang.String queueExchangeName()
Name of the exchange for non-temporary queues.- Returns:
- exchange name
-
temporaryQueueExchangeName
java.lang.String temporaryQueueExchangeName()
Name of the exchange for temporary queues.- Returns:
- exchange name
-
topicSubscriberQueuePrefix
java.lang.String topicSubscriberQueuePrefix()
Prefix for the AMQP queue name of topic subscribers.- Returns:
- queue prefix
-
durableSubscriberTopicSelectorExchangePrefix
java.lang.String durableSubscriberTopicSelectorExchangePrefix()
Prefix for the selector exchange name of durable topic subscribers.- Returns:
- exchange prefix
-
nonDurableSubscriberTopicSelectorExchangePrefix
java.lang.String nonDurableSubscriberTopicSelectorExchangePrefix()
Prefix for the selector exchange name of non-durable topic subscribers.- Returns:
- exchange prefix
-
temporaryQueuePrefix
java.lang.String temporaryQueuePrefix()
Prefix for the AMQP queue name of temporary queues.- Returns:
- queue prefix
-
temporaryTopicPrefix
java.lang.String temporaryTopicPrefix()
Prefix for the AMQP queue name of temporary topics.- Returns:
- queue prefix
-
-