Class: MysqlPause::Backend

Inherits:
EM::Connection
  • Object
show all
Defined in:
lib/mysql-pause/backend.rb

Instance Method Summary collapse

Constructor Details

#initialize(proxy) ⇒ Backend

Returns a new instance of Backend.



5
6
7
# File 'lib/mysql-pause/backend.rb', line 5

def initialize(proxy)
  @proxy = proxy
end

Instance Method Details

#post_initObject



9
10
11
12
13
# File 'lib/mysql-pause/backend.rb', line 9

def post_init
  if @proxy.options[:debug]
    @proxy.logger.debug("backend: connect")
  end
end

#receive_data(data) ⇒ Object



21
22
23
# File 'lib/mysql-pause/backend.rb', line 21

def receive_data(data)
  @proxy.send_data(data)
end

#unbindObject



15
16
17
18
19
# File 'lib/mysql-pause/backend.rb', line 15

def unbind
  if @proxy.options[:debug]
    @proxy.logger.debug("backend: unbind")
  end
end