Class: Ductr::SequelBase::PollingTrigger

Inherits:
RufusTrigger show all
Defined in:
lib/ductr/sequel_base/polling_trigger.rb

Overview

A trigger based on the RufusTrigger, runs the PollingHandler at the given timing.

Instance Attribute Summary

Attributes inherited from Trigger

#adapter

Instance Method Summary collapse

Methods inherited from RufusTrigger

#add

Methods inherited from Trigger

#add, #initialize, #start

Constructor Details

This class inherits a constructor from Ductr::Trigger

Instance Method Details

#stopvoid

This method returns an undefined value.

Closes the connection if the scheduler is stopped.



14
15
16
17
# File 'lib/ductr/sequel_base/polling_trigger.rb', line 14

def stop
  super
  adapter.close!
end