Module: EM::HyperDex::Client::Watcher Private

Defined in:
lib/em-hyperdex-client.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Mix-in module for EM.watch.

Instance Method Summary collapse

Instance Method Details

#initialize(em_client) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the watcher.



259
260
261
# File 'lib/em-hyperdex-client.rb', line 259

def initialize(em_client)
	@em_client = em_client
end

#notify_readableObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Handle the fact that more data is available.



266
267
268
# File 'lib/em-hyperdex-client.rb', line 266

def notify_readable
	@em_client.handle_response
end