Class: MysqlPause::Backend
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- MysqlPause::Backend
- Defined in:
- lib/mysql-pause/backend.rb
Instance Method Summary collapse
-
#initialize(proxy) ⇒ Backend
constructor
A new instance of Backend.
- #post_init ⇒ Object
- #receive_data(data) ⇒ Object
- #unbind ⇒ Object
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_init ⇒ Object
9 10 11 12 13 |
# File 'lib/mysql-pause/backend.rb', line 9 def post_init if @proxy.[: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 |
#unbind ⇒ Object
15 16 17 18 19 |
# File 'lib/mysql-pause/backend.rb', line 15 def unbind if @proxy.[:debug] @proxy.logger.debug("backend: unbind") end end |