Class: SoarSr::ThreadedHandler
- Includes:
- Jsender
- Defined in:
- lib/soar_sr/threaded_handler.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#max_threads ⇒ Object
Returns the value of attribute max_threads.
Attributes inherited from Handler
Instance Method Summary collapse
-
#initialize(urns, uddi, credentials, registry, max_threads = 15) ⇒ ThreadedHandler
constructor
A new instance of ThreadedHandler.
Methods inherited from Handler
Methods inherited from Validator
#authorized?, #contact?, #credentials?, #identifier?, #key_provided?, #length_at_least?, #meta?, #one_of, #present?, #provided?, #type?, #uri?, #wadl?
Constructor Details
#initialize(urns, uddi, credentials, registry, max_threads = 15) ⇒ ThreadedHandler
Returns a new instance of ThreadedHandler.
6 7 8 9 10 |
# File 'lib/soar_sr/threaded_handler.rb', line 6 def initialize(urns, uddi, credentials, registry, max_threads = 15) super(urns, uddi, credentials, registry) @@mutex = Mutex.new @max_threads = max_threads end |
Instance Attribute Details
#max_threads ⇒ Object
Returns the value of attribute max_threads.
4 5 6 |
# File 'lib/soar_sr/threaded_handler.rb', line 4 def max_threads @max_threads end |