struct NATS::JetStream::Consumer

Defined in:

jetstream/consumer.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct NATS::JetStream::Entity

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ack_floor : Sequence #

The number of messages that have been acknowledged for this consumer/stream


[View source]
def cluster : ClusterInfo | Nil #

Where this consumer's data lives in the cluster


[View source]
def config : ConsumerConfig #

The configuration used to create this consumer (including its defaults)


[View source]
def created : Time #

The timestamp when this consumer was created


[View source]
def delivered : Sequence #

The number of times this consumer has delivered messages for this stream


[View source]
def name : String #

The name of this consumer


[View source]
def num_ack_pending : Int64 #

The number of messages currently in-flight that are awaiting acknowledgement


[View source]
def num_pending : Int64 #

The number of messages in the stream that this consumer has not delivered at all yet


[View source]
def num_redelivered : Int64 #

The number of messages that have been redelivered


[View source]
def num_waiting : Int64 #

The number of messages that are currently waiting


[View source]
def push_bound? : Bool #

[View source]
def stream_name : String #

The name of the stream this consumer sources its messages from


[View source]