struct Crabbit::StreamStats

Overview

Broker-provided statistics for a stream.

Keys are RabbitMQ protocol names such as first_chunk_id, last_chunk_id, committed_chunk_id, and stream_size. Unknown future keys are preserved in #values.

Defined in:

crabbit/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(values : Hash(String, Int64)) #

[View source]

Instance Method Detail

def [](name : String) : Int64 | Nil #

Returns the statistic named name, or nil when the broker omitted it.


[View source]
def clone #

[View source]
def copy_with(values _values = @values) #

[View source]
def values : Hash(String, Int64) #