class Cassandra::Future::Listener
a Future
listener to be passed to {Cassandra::Future#add_listener}
@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.
@abstract Actual listeners passed to {Cassandra::Future#add_listener} don't
need to extend this class as long as they implement `#success` and `#failure` methods
Public Instance Methods
failure(error)
click to toggle source
@param error [Exception] an exception used to fail the future @return [void]
# File lib/cassandra/future.rb 42 def failure(error) 43 end
success(value)
click to toggle source
@param value [Object] actual value the future has been resolved with @return [void]
# File lib/cassandra/future.rb 37 def success(value) 38 end