A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Seahorse/Client/HandlerListEntry.html below:

HandlerListEntry — AWS SDK for Ruby V2

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Seahorse::Client::HandlerListEntry
Inherits:
Object show all
Defined in:
aws-sdk-core/lib/seahorse/client/handler_list_entry.rb
Overview

A container for an un-constructed handler. A handler entry has the handler class, and information about handler priority/order.

This class is an implementation detail of the HandlerList class. Do not rely on public interfaces of this class.

Constant Summary collapse
STEPS =
{
  initialize: 400,
  validate: 300,
  build: 200,
  sign: 100,
  send: 0,
}
Instance Attribute Summary collapse Instance Method Summary collapse Constructor Details #initialize(options) ⇒ HandlerListEntry

Returns a new instance of HandlerListEntry.

26
27
28
29
30
31
32
33
34
35
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 26

def initialize(options)
  @options = options
  @handler_class = option(:handler_class, options)
  @inserted = option(:inserted, options)
  @operations = options[:operations]
  @operations = Set.new(options[:operations]).map(&:to_s) if @operations
  set_step(options[:step] || :build)
  set_priority(options[:priority] || 50)
  compute_weight
end
Instance Attribute Details #handler_classHandler, Class<Handler>

Returns the handler. This may be a constructed handler object or a handler class.

39
40
41
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 39

def handler_class
  @handler_class
end
#inserted ⇒ Integer

Returns The insertion order/position. This is used to determine sort order when two entries have the same priority. Entries inserted later (with a higher inserted value) have a lower priority.

45
46
47
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 45

def inserted
  @inserted
end
#operations ⇒ Set<String>
54
55
56
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 54

def operations
  @operations
end
#priority ⇒ Integer
51
52
53
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 51

def priority
  @priority
end
#step ⇒ Symbol
48
49
50
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 48

def step
  @step
end
#weight ⇒ Integer
57
58
59
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 57

def weight
  @weight
end
Instance Method Details #copy(options = {}) ⇒ HandlerListEntry
70
71
72
# File 'aws-sdk-core/lib/seahorse/client/handler_list_entry.rb', line 70

def copy(options = {})
  HandlerListEntry.new(@options.merge(options))
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4