| Class | Mongo::Cluster::PeriodicExecutor |
| In: |
lib/mongo/cluster/periodic_executor.rb
|
| Parent: | Object |
| FREQUENCY | = | 5 |
The default time interval for the periodic executor to execute.
@since 2.5.0 |
Create a periodic executor.
@example Create a PeriodicExecutor.
Mongo::Cluster::PeriodicExecutor.new(reaper, reaper2)
@api private
@since 2.5.0
Trigger an execute call on each reaper.
@example Trigger all reapers.
periodic_executor.execute
@api private
@since 2.5.0
Execute all pending operations.
@example Execute all pending operations.
periodic_executor.flush
@api private
@since 2.5.0
Start the thread.
@example Start the periodic executor‘s thread.
periodic_executor.run!
@api private
@since 2.5.0