class Movie::ClusterRoutersExtension

Defined in:

movie/cluster/router/extension.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Instance methods inherited from class Movie::Extension

start start, stop stop

Constructor Detail

def self.new(system : AbstractActorSystem) #

[View source]

Instance Method Detail

def group(key : Cluster::ServiceKey(T), settings : Cluster::ClusterRouterSettings = Cluster::ClusterRouterSettings.new, routing_key : Proc(T, String) | Nil = nil) : Cluster::ClusterRouterRef(T) forall T #

[View source]
def pool(key : Cluster::ServiceKey(T), size : Int32, name_prefix : String = "routee", settings : Cluster::ClusterRouterSettings = Cluster::ClusterRouterSettings.new, routing_key : Proc(T, String) | Nil = nil, &factory : Int32 -> AbstractBehavior(T)) : Cluster::ClusterRouterPool(T) forall T #

[View source]
def pool_closed(pool : Cluster::ClusterRouterPoolBase) : Nil #

[View source]
def record_broadcast_delivery(count : Int32) : Nil #

[View source]
def record_delivery(count : Int32 = 1) : Nil #

[View source]
def record_listing_update : Nil #

[View source]
def record_strategy_selection(strategy : Cluster::ClusterRoutingStrategy) : Nil #

[View source]
def record_unavailable : Nil #

[View source]
def router_closed(router : Cluster::ClusterRouterRefBase) : Nil #

[View source]
def start : Bool #
Description copied from class Movie::Extension

Called when the extension is registered with the system. Override to perform initialization.


[View source]

[View source]
def stop : Nil #
Description copied from class Movie::Extension

Called when the system is shutting down. Override to cleanup resources (close connections, stop services, etc.)


[View source]