class NATS::Subscription

Defined in:

nats.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(subject : String, sid : Int64, queue_group : Nil | String, nats : NATS::Client, max_in_flight : Int = 10, &block : Message, Subscription -> ) #

[View source]

Instance Method Detail

def close #

[View source]
def drain : Nil #

[View source]
def messages_remaining : Int32 | Nil #

[View source]
def queue_group : String | Nil #

[View source]
def send(message, &on_error : Exception -> ) : Nil #

[View source]
def sid : Int64 #

[View source]
def start : self #

[View source]
def subject : String #

[View source]
def unsubscribe_after(messages messages_remaining : Int32) #

[View source]