class LavinMQ::Replication::Follower

Defined in:

lavinmq/replication/follower.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(socket : TCPSocket, file_index : FileIndex) #

[View source]

Instance Method Detail

def add(path, mfile : MFile | Nil = nil) : Int64 #

[View source]
def append(path, obj) : Int64 #

[View source]
def close(synced_close : Channel(Tuple(Follower, Bool)) | Nil = nil) #

[View source]
def closed? : Bool #

[View source]
def delete(path) : Int64 #

[View source]
def full_sync : Nil #

[View source]
def lag : Int64 #

[View source]
def name : String #

[View source]
def negotiate!(password) : Nil #

[View source]
def read_ack(socket = @socket) : Nil #

[View source]
def read_acks(socket = @socket) : Nil #

[View source]
def to_json(json : JSON::Builder) #

[View source]