默认值为120000毫秒。值为0表示它不会等待。负值表示无限期等待。 代码示例 代码示例来源:origin: org.mongodb/mongo-java-driver /** * Creates a new {@code MongoOptions} with the given options. This class is deprecated, use {@link com.mongodb.MongoClientOptions}. * * @param options the ...
默认值为false。 代码示例 代码示例来源:origin: org.mongodb/mongo-java-driver serverSelector=options.getServerSelector(); sslEnabled=options.isSslEnabled(); sslInvalidHostNameAllowed=options.isSslInvalidHostNameAllowed(); sslContext=options.getSslContext(); alwaysUseMBeans=options.isAlwaysUseMBeans()...
默认值为10000毫秒。 代码示例 代码示例来源:origin: org.mongodb/mongo-java-driver /** * Creates a new {@code MongoOptions} with the given options. This class is deprecated, use {@link com.mongodb.MongoClientOptions}. * * @param options the MongoClientOptions to copy values from into the...
这是驱动程序尝试确定群集中每个服务器的当前状态的频率。 默认值为10000毫秒。 代码示例 代码示例来源:origin: org.mongodb/mongo-java-driver sslContext=options.getSslContext(); alwaysUseMBeans=options.isAlwaysUseMBeans(); heartbeatFrequency=options.getHeartbeatFrequency(); minHeartbeatFrequency=options.ge...
默认值为WriteConcern。承认。 代码示例 代码示例来源:origin: brianfrankcooper/YCSB writeConcern = uri.getOptions().getWriteConcern(); 代码示例来源:origin: org.mongodb/mongo-java-driver @SuppressWarnings("deprecation") Mongo(final Cluster cluster, final MongoClientOptions options, final List<Mongo...
默认值为20000毫秒。 代码示例 代码示例来源:origin: org.mongodb/mongo-java-driver minHeartbeatFrequency=options.getMinHeartbeatFrequency(); heartbeatConnectTimeout=options.getHeartbeatConnectTimeout(); heartbeatSocketTimeout=options.getHeartbeatSocketTimeout(); ...
[中]如果在没有与查询筛选器匹配的情况下插入新文档,则返回true。默认值为false。 代码示例 代码示例来源:origin: org.mongodb/mongo-java-driver FindAndReplaceOperation<TDocument>findOneAndReplace(finalBsonfilter,finalTDocumentreplacement, finalFindOneAndReplaceOptionsoptions){ ...