Permalink
Browse files

allow backgroundPoolSize to be configurable with -Dvertx.backgroundPo…

…olSize = int
  • Loading branch information...
1 parent dfe5fce commit 912cbb91149f15ea91a8a04d20c227d09de75224 @dsklyut dsklyut committed Aug 10, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 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 912cbb9

Please sign in to comment.