class LavinMQ::Shovel::AMQPSource

Defined in:

lavinmq/shovel/shovel.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, uris : Array(URI), queue : String | Nil, exchange : String | Nil = nil, exchange_key : String | Nil = nil, delete_after : LavinMQ::Shovel::DeleteAfter = DEFAULT_DELETE_AFTER, prefetch : UInt16 = DEFAULT_PREFETCH, ack_mode : LavinMQ::Shovel::AckMode = DEFAULT_ACK_MODE, consumer_args : Hash(String, JSON::Any) | Nil = nil, direct_user : User | Nil = nil, batch_ack_timeout : Time::Span = DEFAULT_BATCH_ACK_TIMEOUT) #

[View source]

Instance Method Detail

def ack(delivery_tag, batch = true) #

[View source]
def delete_after : LavinMQ::Shovel::DeleteAfter #

[View source]
def each(&blk : ::AMQP::Client::DeliverMessage -> Nil) #

[View source]
def last_unacked : UInt64? #

[View source]
def start #

[View source]
def started? : Bool #

[View source]
def stop #

[View source]