Class: VertxServiceDiscovery::DiscoveryBridge
- Inherits:
-
Object
- Object
- VertxServiceDiscovery::DiscoveryBridge
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/discovery_bridge.rb
Instance Method Summary (collapse)
-
- (DiscoveryBridge) initialize(j_del)
constructor
A new instance of DiscoveryBridge.
- - (Object) j_del
- - (Object) start(vertx = nil, discovery = nil, configuration = nil, future = nil)
- - (Object) stop(vertx = nil, discovery = nil, future = nil)
Constructor Details
- (DiscoveryBridge) initialize(j_del)
Returns a new instance of DiscoveryBridge
13 14 15 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/discovery_bridge.rb', line 13 def initialize(j_del) @j_del = j_del end |
Instance Method Details
- (Object) j_del
18 19 20 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/discovery_bridge.rb', line 18 def j_del @j_del end |
- (Object) start(vertx = nil, discovery = nil, configuration = nil, future = nil)
27 28 29 30 31 32 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/discovery_bridge.rb', line 27 def start(vertx=nil,discovery=nil,configuration=nil,future=nil) if vertx.class.method_defined?(:j_del) && discovery.class.method_defined?(:j_del) && configuration.class == Hash && future.class.method_defined?(:j_del) && !block_given? return @j_del.java_method(:init, [Java::IoVertxCore::Vertx.java_class, Java::IoVertxServicediscovery::ServiceDiscovery.java_class, Java::IoVertxCoreJson::JsonObject.java_class, Java::IoVertxCore::Future.java_class]).call(vertx.j_del, discovery.j_del, ::Vertx::Util::Utils.to_json_object(configuration), future.j_del) end raise ArgumentError, "Invalid arguments when calling start(vertx,discovery,configuration,future)" end |
- (Object) stop(vertx = nil, discovery = nil, future = nil)
38 39 40 41 42 43 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/discovery_bridge.rb', line 38 def stop(vertx=nil,discovery=nil,future=nil) if vertx.class.method_defined?(:j_del) && discovery.class.method_defined?(:j_del) && future.class.method_defined?(:j_del) && !block_given? return @j_del.java_method(:stop, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxServicediscovery::ServiceDiscovery.java_class,Java::IoVertxCore::Future.java_class]).call(vertx.j_del,discovery.j_del,future.j_del) end raise ArgumentError, "Invalid arguments when calling stop(vertx,discovery,future)" end |