Package org.acemq.rabbitmq.admin
Class LimitInfo
java.lang.Object
org.acemq.rabbitmq.admin.LimitInfo
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
-
MAX_CONNECTIONS
Limits the number of concurrent connections.- See Also:
-
MAX_QUEUES
Limits the number of queues that may exist.- See Also:
-
-
Constructor Details
-
LimitInfo
-
-
Method Details
-
vhost
- Returns:
- the virtual host this applies to, or null for a user limit
-
user
- Returns:
- the user this applies to, or null for a vhost limit
-
value
- Returns:
- every limit set here, by name
-
limit
- Parameters:
name- a limit name, such asMAX_CONNECTIONS- Returns:
- its value, if this object carries it
-
toString
-