Class: Cassandra::Future::Listener Abstract
- Inherits:
-
Object
- Object
- Cassandra::Future::Listener
- Defined in:
- lib/cassandra/future.rb
Overview
This class is abstract.
Actual listeners passed to #add_listener don't
need to extend this class as long as they implement #success
and
#failure
methods
Note:
Listener methods can be called from application if a future has been resolved or failed by the time the listener is registered; or from background thread if it is resolved/failed after the listener has been registered.
a Future listener to be passed to #add_listener
Instance Method Summary collapse
Instance Method Details
#failure(error) ⇒ void
This method returns an undefined value.
42 43 |
# File 'lib/cassandra/future.rb', line 42 def failure(error) end |
#success(value) ⇒ void
This method returns an undefined value.
37 38 |
# File 'lib/cassandra/future.rb', line 37 def success(value) end |