Class: SoarSr::ThreadedHandler

Inherits:
Handler show all
Includes:
Jsender
Defined in:
lib/soar_sr/threaded_handler.rb

Direct Known Subclasses

Associations, Services

Instance Attribute Summary collapse

Attributes inherited from Handler

#registry

Instance Method Summary collapse

Methods inherited from Handler

#authorize

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_threadsObject

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