Sha256: 89d6900cb55ed357ecbbd976e25bc1375be39f1bce8400c2dfc69cf2a2aa570b

Contents?: true

Size: 479 Bytes

Versions: 14

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

module FreshConnection
  class AbstractConnectionManager
    attr_reader :spec_name

    def initialize(spec_name = nil)
      @spec_name = (spec_name || "replica").to_s
    end

    def replica_connection
      raise NotImplementedError
    end

    def put_aside!
      raise NotImplementedError
    end

    def clear_all_connections!
      raise NotImplementedError
    end

    def recovery?
      raise NotImplementedError
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fresh_connection-3.1.3 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.1.2 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.1.1 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.1.1.rc1 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.1.0 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.3 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.2 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.2.rc1 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.1 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.1.rc2 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.1.rc1 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.0 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.0.rc2 lib/fresh_connection/abstract_connection_manager.rb
fresh_connection-3.0.0.rc1 lib/fresh_connection/abstract_connection_manager.rb