Class: VertxStomp::DestinationFactory

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb

Overview

Interface implemented to customize the destination creation.

Instance Method Summary (collapse)

Instance Method Details

- (::VertxStomp::Destination) create(vertx = nil, name = nil)

Creates a destination for the given address.

Parameters:

  • vertx (::Vertx::Vertx) (defaults to: nil)
    the vert.x instance used by the STOMP server.
  • name (String) (defaults to: nil)
    the destination name.

Returns:

Raises:

  • (ArgumentError)


22
23
24
25
26
27
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb', line 22

def create(vertx=nil,name=nil)
  if vertx.class.method_defined?(:j_del) && name.class == String && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:create, [Java::IoVertxCore::Vertx.java_class,Java::java.lang.String.java_class]).call(vertx.j_del,name),::VertxStomp::Destination)
  end
  raise ArgumentError, "Invalid arguments when calling create(vertx,name)"
end