Sha256: c2583bbafc8016a2ed71e2ec59aeccf5c69ee50112aa49614e47f7441f59ee19

Contents?: true

Size: 440 Bytes

Versions: 54

Compression:

Stored size: 440 Bytes

Contents

module Protobuf
  module Rpc
    class Connector

      # Returns a connector class for the pre-defined connector_type.
      def self.connector_for_client
        case ::Protobuf.connector_type
        when :evented then
          ::Protobuf::Rpc::Connectors::EventMachine
        when :zmq then
          ::Protobuf::Rpc::Connectors::Zmq
        else
          ::Protobuf::Rpc::Connectors::Socket
        end
      end

    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
protobuf-2.6.2-java lib/protobuf/rpc/connector.rb
protobuf-2.6.2 lib/protobuf/rpc/connector.rb
protobuf-2.6.1-java lib/protobuf/rpc/connector.rb
protobuf-2.6.1 lib/protobuf/rpc/connector.rb
protobuf-2.6.0-java lib/protobuf/rpc/connector.rb
protobuf-2.6.0 lib/protobuf/rpc/connector.rb
protobuf-2.5.5-java lib/protobuf/rpc/connector.rb
protobuf-2.5.5 lib/protobuf/rpc/connector.rb
protobuf-2.5.4-java lib/protobuf/rpc/connector.rb
protobuf-2.5.4 lib/protobuf/rpc/connector.rb
protobuf-2.5.3 lib/protobuf/rpc/connector.rb
protobuf-2.5.2-java lib/protobuf/rpc/connector.rb
protobuf-2.5.2 lib/protobuf/rpc/connector.rb
protobuf-2.5.1 lib/protobuf/rpc/connector.rb
protobuf-2.5.0-java lib/protobuf/rpc/connector.rb
protobuf-2.5.0 lib/protobuf/rpc/connector.rb
protobuf-2.4.8-java lib/protobuf/rpc/connector.rb
protobuf-2.4.8 lib/protobuf/rpc/connector.rb
protobuf-2.4.7-java lib/protobuf/rpc/connector.rb
protobuf-2.4.7 lib/protobuf/rpc/connector.rb