class
Movie::ClusterRoutersExtension
- Movie::ClusterRoutersExtension
- Movie::Extension
- Reference
- Object
Defined in:
movie/cluster/router/extension.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #group(key : Cluster::ServiceKey(T), settings : Cluster::ClusterRouterSettings = Cluster::ClusterRouterSettings.new, routing_key : Proc(T, String) | Nil = nil) : Cluster::ClusterRouterRef(T) forall T
- #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
- #pool_closed(pool : Cluster::ClusterRouterPoolBase) : Nil
- #record_broadcast_delivery(count : Int32) : Nil
- #record_delivery(count : Int32 = 1) : Nil
- #record_listing_update : Nil
- #record_strategy_selection(strategy : Cluster::ClusterRoutingStrategy) : Nil
- #record_unavailable : Nil
- #router_closed(router : Cluster::ClusterRouterRefBase) : Nil
-
#start : Bool
Called when the extension is registered with the system.
- #stats : Cluster::ClusterRouterStats
-
#stop : Nil
Called when the system is shutting down.
Constructor Detail
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
#
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
#
def start : Bool
#
Description copied from class Movie::Extension
Called when the extension is registered with the system. Override to perform initialization.
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.)