Class DirectExchange

  • All Implemented Interfaces:
    Declarable, Exchange

    public class DirectExchange
    extends AbstractExchange
    Simple container collecting information to describe a direct exchange. Used in conjunction with administrative operations.
    Author:
    Mark Pollack, Dave Syer
    See Also:
    AmqpAdmin
    • Field Detail

      • DEFAULT

        public static final DirectExchange DEFAULT
        The default exchange.
    • Constructor Detail

      • DirectExchange

        public DirectExchange​(java.lang.String name)
      • DirectExchange

        public DirectExchange​(java.lang.String name,
                              boolean durable,
                              boolean autoDelete)
      • DirectExchange

        public DirectExchange​(java.lang.String name,
                              boolean durable,
                              boolean autoDelete,
                              java.util.Map<java.lang.String,​java.lang.Object> arguments)
    • Method Detail

      • getType

        public final java.lang.String getType()
        Description copied from interface: Exchange
        The type of the exchange. See ExchangeTypes for some well-known examples.
        Specified by:
        getType in interface Exchange
        Specified by:
        getType in class AbstractExchange
        Returns:
        the type of the exchange.