Class: VertxConsul::WatchResult
- Inherits:
-
Object
- Object
- VertxConsul::WatchResult
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb
Instance Method Summary (collapse)
-
- (Exception) cause
A Throwable describing failure.
-
- (true, false) failed?
Did it fail?.
-
- (Object) next_result
The next result of the operation.
-
- (Object) prev_result
The previous result of the operation.
-
- (true, false) succeeded?
Did it succeed?.
Instance Method Details
- (Exception) cause
A Throwable describing failure. This will be null if the operation succeeded.
34 35 36 37 38 39 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 34 def cause if !block_given? return ::Vertx::Util::Utils.from_throwable(@j_del.java_method(:cause, []).call()) end raise ArgumentError, "Invalid arguments when calling cause()" end |
- (true, false) failed?
Did it fail?
50 51 52 53 54 55 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 50 def failed? if !block_given? return @j_del.java_method(:failed, []).call() end raise ArgumentError, "Invalid arguments when calling failed?()" end |
- (Object) next_result
The next result of the operation. This will be null if the operation failed.
26 27 28 29 30 31 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 26 def next_result if !block_given? return @j_arg_T.wrap(@j_del.java_method(:nextResult, []).call()) end raise ArgumentError, "Invalid arguments when calling next_result()" end |
- (Object) prev_result
The previous result of the operation.
18 19 20 21 22 23 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 18 def prev_result if !block_given? return @j_arg_T.wrap(@j_del.java_method(:prevResult, []).call()) end raise ArgumentError, "Invalid arguments when calling prev_result()" end |
- (true, false) succeeded?
Did it succeed?
42 43 44 45 46 47 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 42 def succeeded? if !block_given? return @j_del.java_method(:succeeded, []).call() end raise ArgumentError, "Invalid arguments when calling succeeded?()" end |