本文整理了Java中io.vertx.core.VertxOptions.getPreferNativeTransport()
方法的一些代码示例,展示了VertxOptions.getPreferNativeTransport()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VertxOptions.getPreferNativeTransport()
方法的具体详情如下:
包路径:io.vertx.core.VertxOptions
类名称:VertxOptions
方法名:getPreferNativeTransport
暂无
代码示例来源:origin: eclipse-vertx/vert.x
static VertxImpl vertx(VertxOptions options) {
VertxImpl vertx = new VertxImpl(options, Transport.transport(options.getPreferNativeTransport()));
vertx.init();
return vertx;
}
代码示例来源:origin: eclipse-vertx/vert.x
static void clusteredVertx(VertxOptions options, Handler<AsyncResult<Vertx>> resultHandler) {
VertxImpl vertx = new VertxImpl(options, Transport.transport(options.getPreferNativeTransport()));
vertx.joinCluster(options, resultHandler);
}
代码示例来源:origin: eclipse-vertx/vert.x
json.put("metricsOptions", obj.getMetricsOptions().toJson());
json.put("preferNativeTransport", obj.getPreferNativeTransport());
json.put("quorumSize", obj.getQuorumSize());
json.put("warningExceptionTime", obj.getWarningExceptionTime());
代码示例来源:origin: eclipse-vertx/vert.x
public void setUp() throws Exception {
super.setUp();
vinit();
VertxOptions options = getOptions();
boolean nativeTransport = options.getPreferNativeTransport();
vertx = Vertx.vertx(options);
if (nativeTransport) {
assertTrue(vertx.isNativeTransportEnabled());
}
}
代码示例来源:origin: io.vertx/vertx-core
static VertxImpl vertx(VertxOptions options) {
VertxImpl vertx = new VertxImpl(options, Transport.transport(options.getPreferNativeTransport()));
vertx.init();
return vertx;
}
代码示例来源:origin: io.vertx/vertx-core
static void clusteredVertx(VertxOptions options, Handler<AsyncResult<Vertx>> resultHandler) {
VertxImpl vertx = new VertxImpl(options, Transport.transport(options.getPreferNativeTransport()));
vertx.joinCluster(options, resultHandler);
}
代码示例来源:origin: io.vertx/vertx-core
json.put("metricsOptions", obj.getMetricsOptions().toJson());
json.put("preferNativeTransport", obj.getPreferNativeTransport());
json.put("quorumSize", obj.getQuorumSize());
json.put("warningExceptionTime", obj.getWarningExceptionTime());
代码示例来源:origin: io.vertx/vertx-core
public void setUp() throws Exception {
super.setUp();
vinit();
VertxOptions options = getOptions();
boolean nativeTransport = options.getPreferNativeTransport();
vertx = Vertx.vertx(options);
if (nativeTransport) {
assertTrue(vertx.isNativeTransportEnabled());
}
}
代码示例来源:origin: silentbalanceyh/vertx-zero
@Override
public void setUp() throws Exception {
super.setUp();
this.vinit();
final VertxOptions options = this.getOptions();
final boolean nativeTransport = options.getPreferNativeTransport();
this.vertx = Vertx.vertx(options);
if (nativeTransport) {
this.assertTrue(this.vertx.isNativeTransportEnabled());
}
}
代码示例来源:origin: cn.vertxup/vertx-co
@Override
public void setUp() throws Exception {
super.setUp();
this.vinit();
final VertxOptions options = this.getOptions();
final boolean nativeTransport = options.getPreferNativeTransport();
this.vertx = Vertx.vertx(options);
if (nativeTransport) {
this.assertTrue(this.vertx.isNativeTransportEnabled());
}
}
内容来源于网络,如有侵权,请联系作者删除!