Class LimitInfo

java.lang.Object
org.acemq.rabbitmq.admin.LimitInfo

public final class LimitInfo extends Object
A limit on a virtual host or a user.

The controls that stop one misbehaving application taking a broker down for everybody: a connection leak that would otherwise reach the node's file descriptor limit, or a service declaring queues in a loop.

The broker returns these as a map because a vhost can carry several at once — the JSON is {"vhost":"/","value":{"max-connections":100,"max-queues":50}} rather than one object per limit.

  • Field Details

  • Constructor Details

  • Method Details

    • vhost

      public String vhost()
      Returns:
      the virtual host this applies to, or null for a user limit
    • user

      public String user()
      Returns:
      the user this applies to, or null for a vhost limit
    • value

      public Map<String,Object> value()
      Returns:
      every limit set here, by name
    • limit

      public Optional<Long> limit(String name)
      Parameters:
      name - a limit name, such as MAX_CONNECTIONS
      Returns:
      its value, if this object carries it
    • toString

      public String toString()
      Overrides:
      toString in class Object