Class: FreshConnection::ExecutorHook

Inherits:
Object
  • Object
show all
Defined in:
lib/fresh_connection/executor_hook.rb

Class Method Summary collapse

Class Method Details

.complete(*args) ⇒ Object



9
10
11
# File 'lib/fresh_connection/executor_hook.rb', line 9

def complete(*args)
  ReplicaConnectionHandler.instance.put_aside!
end

.install_executor_hooksObject



13
14
15
# File 'lib/fresh_connection/executor_hook.rb', line 13

def install_executor_hooks
  ActiveSupport::Executor.register_hook(self)
end

.runObject



6
7
# File 'lib/fresh_connection/executor_hook.rb', line 6

def run
end