class AvalancheMQ::Queue

Included Modules

Direct Known Subclasses

Defined in:

avalanchemq/queue/queue.cr
avalanchemq/queue/ready.cr
avalanchemq/queue/unacked.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module AvalancheMQ::SortableJSON

details_tuple details_tuple, to_json(json : JSON::Builder) to_json

Instance methods inherited from module Observable

notify_observers(event : Symbol, data : Object | Nil = nil) notify_observers, register_observer(observer : Observer) register_observer, unregister_observer(observer : Observer) unregister_observer

Instance methods inherited from module AvalancheMQ::PolicyTarget

apply_policy(p : Policy) apply_policy, clear_policy clear_policy, policy : Policy | Nil policy

Constructor Detail

def self.new(vhost : VHost, name : String, exclusive : Bool = false, auto_delete : Bool = false, arguments : Hash(String, AMQ::Protocol::Field) = Hash(String, AMQP::Field).new) #

[View source]

Class Method Detail

def self.generate_name #

[View source]

Instance Method Detail

def ack(sp : SegmentPosition) : Nil #

[View source]
def ack_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def add_consumer(consumer : Client::Channel::Consumer) #

[View source]
def any? : Bool #

[View source]
def apply_policy(policy : Policy) #

[View source]

[View source]
def auto_delete : Bool #

[View source]
def basic_get(no_ack) : Envelope | Nil #

[View source]
def bindings #

[View source]
def clear_policy #

[View source]
def close : Bool #

[View source]
def closed? : Bool? #

[View source]
def compact #

[View source]
def confirm_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def consumer_available #

[View source]
def consumer_count #

[View source]
def consumers : AvalancheMQ::ConsumerStore #

[View source]
def delete : Bool #

[View source]
def deliver_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def details_tuple #

[View source]
def durable : Bool #

[View source]
def empty? : Bool #

[View source]
def exclusive : Bool #

[View source]
def flow=(flow : Bool) #

[View source]
def fsync_ack #

[View source]
def fsync_enq #

[View source]
def get_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def get_no_ack_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def has_exclusive_consumer? : Bool #

[View source]
def immediate_delivery? #

[View source]
def in_use? #

[View source]
def inspect(io : IO) #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def internal=(internal : Bool) #

[View source]
def internal? : Bool #

[View source]
def last_get_time : Time::Span #

[View source]
def match?(durable, exclusive, auto_delete, arguments) #

[View source]
def match?(frame) #

[View source]
def message_available #

[View source]
def message_count #

[View source]
def message_count_log : Deque(UInt32) #

Creates @[x]_count and @[x]_rate and @[y]_log


def metadata(sp) : MessageMetadata | Nil #

[View source]
def name : String #

[View source]
def pause! #

[View source]
def policy : Policy | Nil #

[View source]
def publish(sp : SegmentPosition, persistent = false) : Bool #

[View source]
def publish_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def purge : UInt32 #

[View source]
def read(sp : SegmentPosition) #

[View source]

[View source]
def redeclare #

[View source]
def redeliver_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def refresh_ttl_timeout #

[View source]
def reject(sp : SegmentPosition, requeue : Bool) #

[View source]
def reject_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def resume! #

[View source]
def return_unroutable_count : UInt64 #

Creates @[x]_count and @[x]_rate and @[y]_log


def rm_consumer(consumer : Client::Channel::Consumer, basic_cancel = false) #

[View source]

[View source]
def stats_details #

Creates @[x]_count and @[x]_rate and @[y]_log


[View source]
def to_json(builder : JSON::Builder) #

[View source]

[View source]
def unacked_count #

[View source]
def unacked_count_log : Deque(UInt32) #

Creates @[x]_count and @[x]_rate and @[y]_log


def update_rates #

Creates @[x]_count and @[x]_rate and @[y]_log


[View source]
def vhost : AvalancheMQ::VHost #

[View source]