Method: HornetQ::Client::SessionPool#close

Defined in:
lib/hornetq/client/session_pool.rb

#closeObject

Immediately Close all sessions in the pool and release from the pool

TODO: Allow an option to wait for active sessions to be returned before

closing


162
163
164
165
166
167
168
# File 'lib/hornetq/client/session_pool.rb', line 162

def close
  @pool.each do |s|
    #@pool.remove(s)
    s.close
    #@pool.remove(s)
  end
end