enum LavinMQ::AMQP::ChannelReplyCode

Defined in:

lavinmq/amqp/channel_reply_code.cr

Enum Members

CONTENT_TOO_LARGE = 311_u16
NO_CONSUMERS = 313_u16
ACCESS_REFUSED = 403_u16
NOT_FOUND = 404_u16
RESOURCE_LOCKED = 405_u16
PRECONDITION_FAILED = 406_u16
NOT_IMPLEMENTED = 540_u16

540 is marked as connection level reply-code at but also mentioned in text "MUST raise a channel exception with reply code 540 (not implemented)" indicating it's ok to use as channel close reply code as well

UNEXPECTED_FRAME = 505_u16

TODO Is this reply code ok to use on channel close? Does not look like that from the spec

Instance Method Summary

Instance Method Detail

def access_refused? #

Returns true if this enum value equals ACCESS_REFUSED


[View source]
def content_too_large? #

Returns true if this enum value equals CONTENT_TOO_LARGE


[View source]
def no_consumers? #

Returns true if this enum value equals NO_CONSUMERS


[View source]
def not_found? #

Returns true if this enum value equals NOT_FOUND


[View source]
def not_implemented? #

Returns true if this enum value equals NOT_IMPLEMENTED


[View source]
def precondition_failed? #

Returns true if this enum value equals PRECONDITION_FAILED


[View source]
def resource_locked? #

Returns true if this enum value equals RESOURCE_LOCKED


[View source]
def unexpected_frame? #

Returns true if this enum value equals UNEXPECTED_FRAME


[View source]