本文整理了Java中io.vertx.core.VertxOptions.setEventBusOptions()
方法的一些代码示例,展示了VertxOptions.setEventBusOptions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VertxOptions.setEventBusOptions()
方法的具体详情如下:
包路径:io.vertx.core.VertxOptions
类名称:VertxOptions
方法名:setEventBusOptions
[英]Sets the event bus configuration to configure the host, port, ssl...
[中]设置事件总线配置以配置主机、端口、ssl。。。
代码示例来源:origin: eclipse-vertx/vert.x
case "eventBusOptions":
if (member.getValue() instanceof JsonObject) {
obj.setEventBusOptions(new io.vertx.core.eventbus.EventBusOptions((JsonObject)member.getValue()));
代码示例来源:origin: eclipse-vertx/vert.x
@Override
protected void startNodes(int numNodes) {
super.startNodes(numNodes, new VertxOptions().setEventBusOptions(options));
}
代码示例来源:origin: vert-x3/vertx-examples
public static void main(String[] args) {
Runner.runClusteredExample(Sender.class,
new VertxOptions().setEventBusOptions(new EventBusOptions()
.setSsl(true)
.setKeyStoreOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble"))
.setTrustStoreOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble"))
)
);
}
代码示例来源:origin: vert-x3/vertx-examples
public static void main(String[] args) {
Runner.runClusteredExample(Receiver.class, new VertxOptions().setEventBusOptions(new EventBusOptions()
.setSsl(true)
.setKeyStoreOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble"))
.setTrustStoreOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble"))
)
);
}
代码示例来源:origin: io.vertx/vertx-core
case "eventBusOptions":
if (member.getValue() instanceof JsonObject) {
obj.setEventBusOptions(new io.vertx.core.eventbus.EventBusOptions((JsonObject)member.getValue()));
代码示例来源:origin: io.vertx/vertx-core
@Override
protected void startNodes(int numNodes) {
super.startNodes(numNodes, new VertxOptions().setEventBusOptions(options));
}
代码示例来源:origin: org.amv.vertx/amv-vertx-spring-boot-starter
@ConditionalOnMissingBean(VertxOptions.class)
@Bean
public VertxOptions vertxOptions(EventBusOptions eventBusOptions, MetricsOptions metricsOptions) {
return new VertxOptions()
.setBlockedThreadCheckInterval(properties.getBlockedThreadCheckInterval())
.setEventLoopPoolSize(properties.getEventLoopPoolSize())
.setWorkerPoolSize(properties.getWorkerPoolSize())
.setInternalBlockingPoolSize(properties.getInternalBlockingPoolSize())
.setQuorumSize(properties.getQuorumSize())
.setMaxEventLoopExecuteTime(properties.getMaxEventLoopExecuteTime())
.setHAGroup(properties.getHaGroup())
.setMaxWorkerExecuteTime(properties.getMaxWorkerExecuteTime())
.setWarningExceptionTime(properties.getWarningExceptionTime())
.setFileResolverCachingEnabled(properties.isFileResolverCachingEnabled())
.setHAEnabled(properties.isHaEnabled())
.setEventBusOptions(eventBusOptions)
.setMetricsOptions(metricsOptions);
}
内容来源于网络,如有侵权,请联系作者删除!