Interface NamingStrategy

  • All Superinterfaces:
    java.io.Serializable

    public interface NamingStrategy
    extends java.io.Serializable
    Contract 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)
    • 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