Class: Contrast::Agent::WorkerThread
- Defined in:
- lib/contrast/agent/worker_thread.rb
Overview
Base class for threads that do async processing
Direct Known Subclasses
ServiceHeartbeat, Contrast::Api::Communication::MessagingQueue
Instance Method Summary collapse
-
#initialize ⇒ WorkerThread
constructor
A new instance of WorkerThread.
- #running? ⇒ Boolean
- #stop! ⇒ Object
Constructor Details
#initialize ⇒ WorkerThread
Returns a new instance of WorkerThread.
8 9 10 |
# File 'lib/contrast/agent/worker_thread.rb', line 8 def initialize @_thread = nil end |
Instance Method Details
#running? ⇒ Boolean
12 13 14 |
# File 'lib/contrast/agent/worker_thread.rb', line 12 def running? !!@_thread&.alive? end |