case "eventLoopPoolSize": if (member.getValue() instanceof Number) { obj.setEventLoopPoolSize(((Number)member.getValue()).intValue());
case "eventLoopPoolSize": if (member.getValue() instanceof Number) { obj.setEventLoopPoolSize(((Number)member.getValue()).intValue());
options.setClusterPort(clusterPort); options.setClusterPublicPort(clusterPublicPort); options.setEventLoopPoolSize(eventLoopPoolSize); options.setInternalBlockingPoolSize(internalBlockingPoolSize); options.setWorkerPoolSize(workerPoolSize);
assertEquals(2 * Runtime.getRuntime().availableProcessors(), options.getEventLoopPoolSize()); int rand = TestUtils.randomPositiveInt(); assertEquals(options, options.setEventLoopPoolSize(rand)); assertEquals(rand, options.getEventLoopPoolSize()); try { options.setEventLoopPoolSize(0); fail("Should throw exception"); } catch (IllegalArgumentException e) {
public static void eventLoop() { Vertx vertx = Vertx.vertx(new VertxOptions().setEventLoopPoolSize(10)); }
public static Vertx create() { VertxOptions options = new VertxOptions() .setWorkerPoolSize(1) .setInternalBlockingPoolSize(1) .setEventLoopPoolSize(1); return Vertx.vertx(options); } }
options.setEventLoopPoolSize(nioThreads); options.setMaxWorkerExecuteTime(1000);
@Override protected VertxOptions getOptions() { return new VertxOptions().setEventLoopPoolSize(16); }
options.setClusterPort(clusterPort); options.setClusterPublicPort(clusterPublicPort); options.setEventLoopPoolSize(eventLoopPoolSize); options.setInternalBlockingPoolSize(internalBlockingPoolSize); options.setWorkerPoolSize(workerPoolSize);
@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); }
assertEquals(2 * Runtime.getRuntime().availableProcessors(), options.getEventLoopPoolSize()); int rand = TestUtils.randomPositiveInt(); assertEquals(options, options.setEventLoopPoolSize(rand)); assertEquals(rand, options.getEventLoopPoolSize()); try { options.setEventLoopPoolSize(0); fail("Should throw exception"); } catch (IllegalArgumentException e) {