class LavinMQ::MQTT::RetainStore

Defined in:

lavinmq/mqtt/retain_store.cr

Constant Summary

INDEX_FILE_NAME = "index"
Log = LavinMQ::Log.for("retainstore")
MESSAGE_FILE_SUFFIX = ".msg"

Constructors

Instance Method Summary

Constructor Detail

def self.new(dir : String, replicator : Clustering::Replicator, index : LavinMQ::MQTT::TopicTree(String) = IndexTree.new) #

[View source]

Instance Method Detail

def close #

[View source]
def each(subscription : String, &block : String, ::IO, UInt64 -> Nil) : Nil #

[View source]
def make_file_name(topic : String) : String #

[View source]
def retain(topic : String, body_io : ::IO, size : UInt64) : Nil #

[View source]
def retained_messages #

[View source]