module Cadence::Client
Constants
- CLIENT_TYPES_MAP
Public Class Methods
generate(options = {})
click to toggle source
# File lib/cadence/client.rb, line 9 def self.generate(options = {}) client_class = CLIENT_TYPES_MAP[Cadence.configuration.client_type] host = Cadence.configuration.host port = Cadence.configuration.port hostname = `hostname` thread_id = Thread.current.object_id identity = "#{thread_id}@#{hostname}" client_class.new(host, port, identity, options) end