class AWS::SimpleWorkflow::Client

Client class for Amazon Simple Workflow Service (SWF).

Constants

API_VERSION
CACHEABLE_REQUESTS

@api private

Protected Instance Methods

build_request(*args) click to toggle source
Calls superclass method AWS::Core::Client#build_request
# File lib/aws/simple_workflow/client.rb, line 53
def build_request *args
  request = super(*args)
  if request.headers['x-amz-target'] =~ /PollFor(Decision|Activity)Task/
    request.read_timeout = 90
  end
  request
end
cacheable_request?(name, options) click to toggle source
# File lib/aws/simple_workflow/client.rb, line 45
def cacheable_request? name, options
  if name == :poll_for_decision_task
    options.keys.include?(:next_page_token)
  else
    self.class::CACHEABLE_REQUESTS.include?(name)
  end
end