Class QueueInformation

java.lang.Object
org.springframework.amqp.core.QueueInformation

public class QueueInformation extends Object
Information about a queue, resulting from a passive declaration.
Since:
2.2
Author:
Gary Russell, Ngoc Nhan, Artem Bilan
  • Constructor Details

    • QueueInformation

      public QueueInformation(String name, long messageCount, int consumerCount)
  • Method Details

    • getName

      public String getName()
    • getMessageCount

      public long getMessageCount()
    • getConsumerCount

      public int getConsumerCount()
    • getType

      public String getType()
      Return a queue type. classic by default since AMQP 0.9.1 protocol does not return this info in DeclareOk reply.
      Returns:
      a queue type
      Since:
      4.0
    • setType

      public void setType(String type)
      Set a queue type.
      Parameters:
      type - the queue type: quorum, classic or stream
      Since:
      4.0
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object