Class: Synapse::EventBus::ClusterSelector Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse/event_bus/clustering/selector.rb

Overview

This class is abstract.

Represents a mechanism for assigning event listeners to clusters

Instance Method Summary collapse

Instance Method Details

#select_cluster(listener) ⇒ Cluster

This method is abstract.

Selects and returns a suitable cluster for the given event listener

Parameters:

Returns:

  • (Cluster)

    Returns nil if no suitable cluster



11
# File 'lib/synapse/event_bus/clustering/selector.rb', line 11

def select_cluster(listener); end