module

Swim

Constants

VERSION = "0.3.0"

Class methods

join(advertise : String, *, bind bind_address : String | Nil = nil, seeds : Enumerable(String) | Nil = nil, key : String | Nil = nil, period : Time::Span = 1.second, timeout : Time::Span = 500.milliseconds, tombstone : Time::Span = 24.hours) : Cluster

Joins a cluster. advertise is the address other nodes use, in host:port form. seeds are known peers. Call Cluster#stop when this process leaves.

Source
join(advertise : String, *, bind bind_address : String | Nil = nil, seeds : Enumerable(String) | Nil = nil, key : String | Nil = nil, period : Time::Span = 1.second, timeout : Time::Span = 500.milliseconds, tombstone : Time::Span = 24.hours, & : Cluster -> ) : Nil

Joins a cluster and stops it when the block ends.

Source

Nested types