Class: VertxMongo::MongoClient

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

Direct Known Subclasses

MongoService

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)

18
19
20
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 18

def @@j_api_type.accept?(obj)
  obj.class == MongoClient
end

+ (::VertxMongo::MongoClient) create_non_shared(vertx = nil, config = nil)

Parameters:

  • vertx (::Vertx::Vertx) (defaults to: nil)
  • config (Hash{String => Object}) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)

36
37
38
39
40
41
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 36

def self.create_non_shared(vertx=nil,config=nil)
  if vertx.class.method_defined?(:j_del) && config.class == Hash && !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:createNonShared, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config)),::VertxMongo::MongoClient)
  end
  raise ArgumentError, "Invalid arguments when calling create_non_shared(#{vertx},#{config})"
end

+ (::VertxMongo::MongoClient) create_shared(vertx = nil, config = nil, dataSourceName = nil)

Parameters:

  • vertx (::Vertx::Vertx) (defaults to: nil)
  • config (Hash{String => Object}) (defaults to: nil)
  • dataSourceName (String) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)

46
47
48
49
50
51
52
53
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 46

def self.create_shared(vertx=nil,config=nil,dataSourceName=nil)
  if vertx.class.method_defined?(:j_del) && config.class == Hash && !block_given? && dataSourceName == nil
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:createShared, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config)),::VertxMongo::MongoClient)
  elsif vertx.class.method_defined?(:j_del) && config.class == Hash && dataSourceName.class == String && !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:createShared, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::java.lang.String.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config),dataSourceName),::VertxMongo::MongoClient)
  end
  raise ArgumentError, "Invalid arguments when calling create_shared(#{vertx},#{config},#{dataSourceName})"
end

+ (Object) j_api_type


27
28
29
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 27

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class


30
31
32
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 30

def self.j_class
  Java::IoVertxExtMongo::MongoClient.java_class
end

+ (Object) unwrap(obj)


24
25
26
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 24

def @@j_api_type.unwrap(obj)
  obj.j_del
end

+ (Object) wrap(obj)


21
22
23
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 21

def @@j_api_type.wrap(obj)
  MongoClient.new(obj)
end

Instance Method Details

- (self) bulk_write(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Array<Hash>) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

204
205
206
207
208
209
210
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 204

def bulk_write(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Array && block_given?
    @j_del.java_method(:bulkWrite, [Java::java.lang.String.java_class,Java::JavaUtil::List.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,arg1.map { |element| Java::IoVertxExtMongo::BulkOperation.new(::Vertx::Util::Utils.to_json_object(element)) },(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling bulk_write(#{arg0},#{arg1})"
end

- (self) bulk_write_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Array<Hash>) (defaults to: nil)
  • arg2 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

216
217
218
219
220
221
222
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 216

def bulk_write_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Array && arg2.class == Hash && block_given?
    @j_del.java_method(:bulkWriteWithOptions, [Java::java.lang.String.java_class,Java::JavaUtil::List.java_class,Java::IoVertxExtMongo::BulkWriteOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,arg1.map { |element| Java::IoVertxExtMongo::BulkOperation.new(::Vertx::Util::Utils.to_json_object(element)) },Java::IoVertxExtMongo::BulkWriteOptions.new(::Vertx::Util::Utils.to_json_object(arg2)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling bulk_write_with_options(#{arg0},#{arg1},#{arg2})"
end

- (void) close

This method returns an undefined value.

Raises:

  • (ArgumentError)

589
590
591
592
593
594
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 589

def close
  if !block_given?
    return @j_del.java_method(:close, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling close()"
end

- (self) count(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

356
357
358
359
360
361
362
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 356

def count(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:count, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling count(#{arg0},#{arg1})"
end

- (self) create_collection(arg0 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

458
459
460
461
462
463
464
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 458

def create_collection(arg0=nil)
  if arg0.class == String && block_given?
    @j_del.java_method(:createCollection, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling create_collection(#{arg0})"
end

- (self) create_index(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

488
489
490
491
492
493
494
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 488

def create_index(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:createIndex, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling create_index(#{arg0},#{arg1})"
end

- (self) create_index_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

500
501
502
503
504
505
506
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 500

def create_index_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:createIndexWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::IndexOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::IndexOptions.new(::Vertx::Util::Utils.to_json_object(arg2)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling create_index_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) distinct(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (String) (defaults to: nil)
  • arg2 (String) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

544
545
546
547
548
549
550
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 544

def distinct(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == String && arg2.class == String && block_given?
    @j_del.java_method(:distinct, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,arg1,arg2,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling distinct(#{arg0},#{arg1},#{arg2})"
end

- (::Vertx::ReadStream) distinct_batch(arg0 = nil, arg1 = nil, arg2 = nil)

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (String) (defaults to: nil)
  • arg2 (String) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)

568
569
570
571
572
573
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 568

def distinct_batch(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == String && arg2.class == String && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:distinctBatch, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(arg0,arg1,arg2),::Vertx::ReadStreamImpl, nil)
  end
  raise ArgumentError, "Invalid arguments when calling distinct_batch(#{arg0},#{arg1},#{arg2})"
end

- (::Vertx::ReadStream) distinct_batch_with_query(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil, arg4 = nil)

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (String) (defaults to: nil)
  • arg2 (String) (defaults to: nil)
  • arg3 (Hash{String => Object}) (defaults to: nil)
  • arg4 (Fixnum) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)

580
581
582
583
584
585
586
587
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 580

def distinct_batch_with_query(arg0=nil,arg1=nil,arg2=nil,arg3=nil,arg4=nil)
  if arg0.class == String && arg1.class == String && arg2.class == String && arg3.class == Hash && !block_given? && arg4 == nil
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:distinctBatchWithQuery, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(arg0,arg1,arg2,::Vertx::Util::Utils.to_json_object(arg3)),::Vertx::ReadStreamImpl, nil)
  elsif arg0.class == String && arg1.class == String && arg2.class == String && arg3.class == Hash && arg4.class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:distinctBatchWithQuery, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::int.java_class]).call(arg0,arg1,arg2,::Vertx::Util::Utils.to_json_object(arg3),arg4),::Vertx::ReadStreamImpl, nil)
  end
  raise ArgumentError, "Invalid arguments when calling distinct_batch_with_query(#{arg0},#{arg1},#{arg2},#{arg3},#{arg4})"
end

- (self) distinct_with_query(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (String) (defaults to: nil)
  • arg2 (String) (defaults to: nil)
  • arg3 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

557
558
559
560
561
562
563
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 557

def distinct_with_query(arg0=nil,arg1=nil,arg2=nil,arg3=nil)
  if arg0.class == String && arg1.class == String && arg2.class == String && arg3.class == Hash && block_given?
    @j_del.java_method(:distinctWithQuery, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,arg1,arg2,::Vertx::Util::Utils.to_json_object(arg3),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling distinct_with_query(#{arg0},#{arg1},#{arg2},#{arg3})"
end

- (self) drop_collection(arg0 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

477
478
479
480
481
482
483
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 477

def drop_collection(arg0=nil)
  if arg0.class == String && block_given?
    @j_del.java_method(:dropCollection, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling drop_collection(#{arg0})"
end

- (self) drop_index(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (String) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

521
522
523
524
525
526
527
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 521

def drop_index(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == String && block_given?
    @j_del.java_method(:dropIndex, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,arg1,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling drop_index(#{arg0},#{arg1})"
end

- (self) find(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

227
228
229
230
231
232
233
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 227

def find(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:find, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt != nil ? JSON.parse(elt.encode) : nil } : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find(#{arg0},#{arg1})"
end

- (::Vertx::ReadStream) find_batch(arg0 = nil, arg1 = nil)

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)

237
238
239
240
241
242
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 237

def find_batch(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:findBatch, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1)),::Vertx::ReadStreamImpl, nil)
  end
  raise ArgumentError, "Invalid arguments when calling find_batch(#{arg0},#{arg1})"
end

- (::Vertx::ReadStream) find_batch_with_options(arg0 = nil, arg1 = nil, arg2 = nil)

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)

259
260
261
262
263
264
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 259

def find_batch_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:findBatchWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(arg2))),::Vertx::ReadStreamImpl, nil)
  end
  raise ArgumentError, "Invalid arguments when calling find_batch_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) find_one(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

270
271
272
273
274
275
276
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 270

def find_one(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:findOne, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one(#{arg0},#{arg1},#{arg2})"
end

- (self) find_one_and_delete(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

333
334
335
336
337
338
339
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 333

def find_one_and_delete(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:findOneAndDelete, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one_and_delete(#{arg0},#{arg1})"
end

- (self) find_one_and_delete_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

345
346
347
348
349
350
351
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 345

def find_one_and_delete_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:findOneAndDeleteWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(arg2)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one_and_delete_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) find_one_and_replace(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

308
309
310
311
312
313
314
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 308

def find_one_and_replace(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:findOneAndReplace, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one_and_replace(#{arg0},#{arg1},#{arg2})"
end

- (self) find_one_and_replace_with_options(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil, arg4 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)
  • arg3 (Hash) (defaults to: nil)
  • arg4 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

322
323
324
325
326
327
328
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 322

def find_one_and_replace_with_options(arg0=nil,arg1=nil,arg2=nil,arg3=nil,arg4=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && arg3.class == Hash && arg4.class == Hash && block_given?
    @j_del.java_method(:findOneAndReplaceWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(arg3)),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(arg4)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one_and_replace_with_options(#{arg0},#{arg1},#{arg2},#{arg3},#{arg4})"
end

- (self) find_one_and_update(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

282
283
284
285
286
287
288
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 282

def find_one_and_update(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:findOneAndUpdate, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one_and_update(#{arg0},#{arg1},#{arg2})"
end

- (self) find_one_and_update_with_options(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil, arg4 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)
  • arg3 (Hash) (defaults to: nil)
  • arg4 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

296
297
298
299
300
301
302
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 296

def find_one_and_update_with_options(arg0=nil,arg1=nil,arg2=nil,arg3=nil,arg4=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && arg3.class == Hash && arg4.class == Hash && block_given?
    @j_del.java_method(:findOneAndUpdateWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(arg3)),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(arg4)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_one_and_update_with_options(#{arg0},#{arg1},#{arg2},#{arg3},#{arg4})"
end

- (self) find_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

248
249
250
251
252
253
254
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 248

def find_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:findWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(arg2)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt != nil ? JSON.parse(elt.encode) : nil } : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling find_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) get_collections { ... }

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

467
468
469
470
471
472
473
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 467

def get_collections
  if block_given?
    @j_del.java_method(:getCollections, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt } : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling get_collections()"
end

- (self) insert(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

81
82
83
84
85
86
87
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 81

def insert(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:insert, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling insert(#{arg0},#{arg1})"
end

- (self) insert_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (:ACKNOWLEDGED, :UNACKNOWLEDGED, :FSYNCED, :JOURNALED, :REPLICA_ACKNOWLEDGED, :MAJORITY) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

93
94
95
96
97
98
99
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 93

def insert_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Symbol && block_given?
    @j_del.java_method(:insertWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::WriteOption.valueOf(arg2.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling insert_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) list_indexes(arg0 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

510
511
512
513
514
515
516
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 510

def list_indexes(arg0=nil)
  if arg0.class == String && block_given?
    @j_del.java_method(:listIndexes, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling list_indexes(#{arg0})"
end

- (self) remove(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

367
368
369
370
371
372
373
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 367

def remove(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:remove, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove(#{arg0},#{arg1})"
end

- (self) remove_document(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

424
425
426
427
428
429
430
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 424

def remove_document(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:removeDocument, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_document(#{arg0},#{arg1})"
end

- (self) remove_document_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (:ACKNOWLEDGED, :UNACKNOWLEDGED, :FSYNCED, :JOURNALED, :REPLICA_ACKNOWLEDGED, :MAJORITY) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

448
449
450
451
452
453
454
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 448

def remove_document_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Symbol && block_given?
    @j_del.java_method(:removeDocumentWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::WriteOption.valueOf(arg2.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_document_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) remove_documents(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

378
379
380
381
382
383
384
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 378

def remove_documents(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:removeDocuments, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_documents(#{arg0},#{arg1})"
end

- (self) remove_documents_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (:ACKNOWLEDGED, :UNACKNOWLEDGED, :FSYNCED, :JOURNALED, :REPLICA_ACKNOWLEDGED, :MAJORITY) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

402
403
404
405
406
407
408
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 402

def remove_documents_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Symbol && block_given?
    @j_del.java_method(:removeDocumentsWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::WriteOption.valueOf(arg2.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_documents_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) remove_one(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

413
414
415
416
417
418
419
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 413

def remove_one(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:removeOne, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_one(#{arg0},#{arg1})"
end

- (self) remove_one_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (:ACKNOWLEDGED, :UNACKNOWLEDGED, :FSYNCED, :JOURNALED, :REPLICA_ACKNOWLEDGED, :MAJORITY) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

436
437
438
439
440
441
442
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 436

def remove_one_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Symbol && block_given?
    @j_del.java_method(:removeOneWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::WriteOption.valueOf(arg2.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_one_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) remove_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (:ACKNOWLEDGED, :UNACKNOWLEDGED, :FSYNCED, :JOURNALED, :REPLICA_ACKNOWLEDGED, :MAJORITY) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

390
391
392
393
394
395
396
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 390

def remove_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Symbol && block_given?
    @j_del.java_method(:removeWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::WriteOption.valueOf(arg2.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling remove_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) replace(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

155
156
157
158
159
160
161
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 155

def replace(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:replace, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling replace(#{arg0},#{arg1},#{arg2})"
end

- (self) replace_documents(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

167
168
169
170
171
172
173
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 167

def replace_documents(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:replaceDocuments, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling replace_documents(#{arg0},#{arg1},#{arg2})"
end

- (self) replace_documents_with_options(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)
  • arg3 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

193
194
195
196
197
198
199
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 193

def replace_documents_with_options(arg0=nil,arg1=nil,arg2=nil,arg3=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && arg3.class == Hash && block_given?
    @j_del.java_method(:replaceDocumentsWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(arg3)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling replace_documents_with_options(#{arg0},#{arg1},#{arg2},#{arg3})"
end

- (self) replace_with_options(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)
  • arg3 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

180
181
182
183
184
185
186
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 180

def replace_with_options(arg0=nil,arg1=nil,arg2=nil,arg3=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && arg3.class == Hash && block_given?
    @j_del.java_method(:replaceWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(arg3)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling replace_with_options(#{arg0},#{arg1},#{arg2},#{arg3})"
end

- (self) run_command(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

532
533
534
535
536
537
538
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 532

def run_command(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:runCommand, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling run_command(#{arg0},#{arg1})"
end

- (self) save(arg0 = nil, arg1 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

58
59
60
61
62
63
64
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 58

def save(arg0=nil,arg1=nil)
  if arg0.class == String && arg1.class == Hash && block_given?
    @j_del.java_method(:save, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling save(#{arg0},#{arg1})"
end

- (self) save_with_options(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (:ACKNOWLEDGED, :UNACKNOWLEDGED, :FSYNCED, :JOURNALED, :REPLICA_ACKNOWLEDGED, :MAJORITY) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

70
71
72
73
74
75
76
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 70

def save_with_options(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Symbol && block_given?
    @j_del.java_method(:saveWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),Java::IoVertxExtMongo::WriteOption.valueOf(arg2.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling save_with_options(#{arg0},#{arg1},#{arg2})"
end

- (self) update(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

105
106
107
108
109
110
111
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 105

def update(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:update, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling update(#{arg0},#{arg1},#{arg2})"
end

- (self) update_collection(arg0 = nil, arg1 = nil, arg2 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

117
118
119
120
121
122
123
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 117

def update_collection(arg0=nil,arg1=nil,arg2=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && block_given?
    @j_del.java_method(:updateCollection, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling update_collection(#{arg0},#{arg1},#{arg2})"
end

- (self) update_collection_with_options(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)
  • arg3 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

143
144
145
146
147
148
149
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 143

def update_collection_with_options(arg0=nil,arg1=nil,arg2=nil,arg3=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && arg3.class == Hash && block_given?
    @j_del.java_method(:updateCollectionWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(arg3)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling update_collection_with_options(#{arg0},#{arg1},#{arg2},#{arg3})"
end

- (self) update_with_options(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) { ... }

Parameters:

  • arg0 (String) (defaults to: nil)
  • arg1 (Hash{String => Object}) (defaults to: nil)
  • arg2 (Hash{String => Object}) (defaults to: nil)
  • arg3 (Hash) (defaults to: nil)

Yields:

Returns:

  • (self)

Raises:

  • (ArgumentError)

130
131
132
133
134
135
136
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mongo/mongo_client.rb', line 130

def update_with_options(arg0=nil,arg1=nil,arg2=nil,arg3=nil)
  if arg0.class == String && arg1.class == Hash && arg2.class == Hash && arg3.class == Hash && block_given?
    @j_del.java_method(:updateWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(arg0,::Vertx::Util::Utils.to_json_object(arg1),::Vertx::Util::Utils.to_json_object(arg2),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(arg3)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling update_with_options(#{arg0},#{arg1},#{arg2},#{arg3})"
end