class

LavinMQ::Policy

Inherits JSON::Serializable < LavinMQ::SortableJSON < Reference < Object

Constants

SUPPORTED_POLICIES = {"max-length", "max-length-bytes", "message-ttl", "expires", "overflow", "dead-letter-exchange", "dead-letter-routing-key", "federation-upstream", "federation-upstream-set", "delivery-limit", "max-age", "alternate-exchange", "delayed-message"}

Constructors

new(name : String, vhost : String, pattern : Regex, apply_to : Target, definition : Hash(String, JSON::Any), priority : Int8)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

merge_definitions(p1 : Policy, p2 : Policy) : Hash(String, JSON::Any)
Source
merge_definitions(p1 : Nil, p2 : Policy) : Hash(String, JSON::Any)
Source
merge_definitions(p1 : Policy, p2 : Nil) : Hash(String, JSON::Any)
Source
merge_definitions(p1 : Nil, p2 : Nil) : Hash(String, JSON::Any)
Source

Instance methods

apply_to
Source
definition
Source
details_tuple
Source
match?(resource : Queue)
Source
match?(resource : Exchange)
Source
name
Source
pattern
Source
priority
Source
vhost
Source

Nested types