Class List Method List File List

# Class: VertxServiceDiscovery::ServiceDiscoveryBridge

Inherits:
  Object
  - Object
  - VertxServiceDiscovery::ServiceDiscoveryBridge
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb

## Instance Method Summary (collapse)

- - (ServiceDiscoveryBridge) initialize(j_del) constructor
  A new instance of ServiceDiscoveryBridge.
- - (Object) j_del
- - (Object) start(vertx = nil, publisher = nil, configuration = nil, future = nil)
- - (Object) stop(vertx = nil, publisher = nil, future = nil)

## Constructor Details

### - (`ServiceDiscoveryBridge`) initialize(j_del)

Returns a new instance of ServiceDiscoveryBridge

    14
    15
    16
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb', line 14

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) j_del

    19
    20
    21
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb', line 19

    def j_del
      @j_del
    end

### - (`Object`) start(vertx = nil, publisher = nil, configuration = nil, future = nil)

Raises:

- (`ArgumentError`)

    28
    29
    30
    31
    32
    33
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb', line 28

    def start(vertx=nil,publisher=nil,configuration=nil,future=nil)
      if vertx.class.method_defined?(:j_del) && publisher.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::IoVertxServicediscoverySpi::ServicePublisher.java_class, Java::IoVertxCoreJson::JsonObject.java_class, Java::IoVertxCore::Future.java_class]).call(vertx.j_del, publisher.j_del, ::Vertx::Util::Utils.to_json_object(configuration), future.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling start(vertx,publisher,configuration,future)"
    end

### - (`Object`) stop(vertx = nil, publisher = nil, future = nil)

Raises:

- (`ArgumentError`)

    39
    40
    41
    42
    43
    44
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb', line 39

    def stop(vertx=nil,publisher=nil,future=nil)
      if vertx.class.method_defined?(:j_del) && publisher.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::IoVertxServicediscoverySpi::ServicePublisher.java_class,Java::IoVertxCore::Future.java_class]).call(vertx.j_del,publisher.j_del,future.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling stop(vertx,publisher,future)"
    end