コード例 #1
0
ファイル: VertxOptionsImpl.java プロジェクト: BoscoK/vert.x
 VertxOptionsImpl(JsonObject json) {
   this.proxyOperationTimeout =
       json.getInteger("proxyOperationTimeout", DEFAULT_PROXYOPERATIONTIMEOUT);
   this.eventLoopPoolSize = json.getInteger("eventLoopPoolSize", DEFAULT_EVENTLOOPPOOLSIZE);
   this.workerPoolSize = json.getInteger("workerPoolSize", DEFAULT_WORKERPOOLSIZE);
   this.clustered = json.getBoolean("clustered", DEFAULT_CLUSTERED);
   this.clusterHost = json.getString("clusterHost", DEFAULT_CLUSTERHOST);
   this.clusterPort = json.getInteger("clusterPort", DEFAULT_CLUSTERPORT);
   this.internalBlockingPoolSize =
       json.getInteger("internalBlockingPoolSize", DEFAULT_INTERNALBLOCKINGPOOLSIZE);
   this.blockedThreadCheckPeriod =
       json.getLong("blockedThreadCheckPeriod", DEFAULT_BLOCKEDTHREADCHECKPERIOD);
   this.maxEventLoopExecuteTime =
       json.getLong("maxEventLoopExecuteTime", DEFAULT_MAXEVENTLOOPEXECUTETIME);
   this.maxWorkerExecuteTime = json.getLong("maxWorkerExecuteTime", DEFAULT_MAXWORKEREXECUTETIME);
   this.haEnabled = json.getBoolean("haEnabled", false);
   this.quorumSize = json.getInteger("quorumSize", DEFAULT_QUORUMSIZE);
   this.haGroup = json.getString("haGroup", null);
 }
コード例 #2
0
ファイル: JsObject.java プロジェクト: eformat/vertx-codetrans
 @CodeTranslate
 public void getBooleanFromIdentifier() throws Exception {
   JsonObject obj = new JsonObject().put("_true", true);
   JsonTest.o = obj.getBoolean("_true");
 }