| Class | UnionStationHooks::Context |
| In: |
src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/context.rb
|
| Parent: | Object |
A Context object is the "heart" of all `union_station_hooks_*` gems. It contains a connection to the UstRouter (through a Connection object) and allows you to create Transaction objects.
Context is a singleton. During initialization (`UnionStationHooks.initialize!`), an instance is created and stored in `UnionStationHooks.context`. All the public API methods make use of this singleton context.
See hacking/Architecture.md for an overview.
@private
| RETRY_SLEEP | = | 0.2 |
| NETWORK_ERRORS | = | [ Errno::EPIPE, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH, Errno::ENETDOWN, Errno::ENETUNREACH, Errno::ETIMEDOUT |
| RANDOM_CHARS | = | %w( a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 ) |
| max_connect_tries | [RW] | |
| reconnect_timeout | [RW] |