Skip to content
Browse files

Merge pull request #322 from dsklyut/master

allow backgroundPoolSize to be configurable with -Dvertx.backgroundPoolSize = int
  • Loading branch information...
2 parents 3c9713d + 912cbb9 commit 262473b1d492678eb1cc6e1557f3a517d27dc5d5 @purplefox purplefox committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 vertx-core/src/main/java/org/vertx/java/core/impl/DefaultVertx.java
View
10 vertx-core/src/main/java/org/vertx/java/core/impl/DefaultVertx.java
@@ -82,14 +82,24 @@
public DefaultVertx() {
this.eventBus = new DefaultEventBus(this);
+ configure();
}
public DefaultVertx(String hostname) {
this.eventBus = new DefaultEventBus(this, hostname);
+ configure();
}
public DefaultVertx(int port, String hostname) {
this.eventBus = new DefaultEventBus(this, port, hostname);
+ configure();
+ }
+
+ /**
+ * deal with configuration parameters
+ */
+ private void configure() {
+ this.backgroundPoolSize = Integer.getInteger("vertx.backgroundPoolSize", 20);
}
public NetServer createNetServer() {

0 comments on commit 262473b

Please sign in to comment.
Something went wrong with that request. Please try again.