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) nextResult
The next result of the operation.
-
- (Object) prevResult
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.
46 47 48 49 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 46 def cause if !block_given? return ::Vertx::Util::Utils.from_throwable(@j_del.java_method(:cause, []).call()) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling cause()" end end |
- (true, false) failed
Did it fail?
59 60 61 62 63 64 65 66 67 68 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 59 def failed? if !block_given? return @j_del.java_method(:failed, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling failed?()" end end |
- (Object) nextResult
The next result of the operation. This will be null if the operation failed.
20 21 22 23 24 25 26 27 28 29 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 20 def next_result if !block_given? return @j_arg_T.wrap(@j_del.java_method(:nextResult, []).call()) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling next_result()" end end |
- (Object) prevResult
The previous result of the operation.
33 34 35 36 37 38 39 40 41 42 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 33 def prev_result if !block_given? return @j_arg_T.wrap(@j_del.java_method(:prevResult, []).call()) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling prev_result()" end end |
- (true, false) succeeded
Did it succeed?
72 73 74 75 76 77 78 79 80 81 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-consul/watch_result.rb', line 72 def succeeded? if !block_given? return @j_del.java_method(:succeeded, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling succeeded?()" end end |