Skip to content

Commit

Permalink
Add maximum size in configuration stream output
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Oct 4, 2016
1 parent 9d9f1ed commit b42e36c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private static void writeCommandConfigJson(JsonGenerator json, HystrixCommandKey
private static void writeThreadPoolConfigJson(JsonGenerator json, HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolConfiguration threadPoolConfig) throws IOException {
json.writeObjectFieldStart(threadPoolKey.name());
json.writeNumberField("coreSize", threadPoolConfig.getCoreSize());
json.writeNumberField("maximumSize", threadPoolConfig.getMaximumSize());
json.writeNumberField("maxQueueSize", threadPoolConfig.getMaxQueueSize());
json.writeNumberField("queueRejectionThreshold", threadPoolConfig.getQueueRejectionThreshold());
json.writeNumberField("keepAliveTimeInMinutes", threadPoolConfig.getKeepAliveTimeInMinutes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public static HystrixConfiguration fromByteBuffer(ByteBuffer bb) {
HystrixThreadPoolConfiguration threadPoolConfig = new HystrixThreadPoolConfiguration(
threadPoolKey,
threadPool.getValue().path("coreSize").asInt(),
threadPool.getValue().path("maximumSize").asInt(),
threadPool.getValue().path("maxQueueSize").asInt(),
threadPool.getValue().path("queueRejectionThreshold").asInt(),
threadPool.getValue().path("keepAliveTimeInMinutes").asInt(),
Expand Down

0 comments on commit b42e36c

Please sign in to comment.