Skip to content

Commit

Permalink
JsonCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Smelov committed Jun 5, 2024
1 parent bc1353e commit 6426684
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/exactpro/th2/estore/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package com.exactpro.th2.estore;

import com.fasterxml.jackson.annotation.JsonCreator;

public class Configuration {
private static final int DEFAULT_MAX_TASK_RETRIES = 1000000;
private static final int DEFAULT_MAX_TASK_COUNT = 256;
Expand Down Expand Up @@ -52,6 +54,7 @@ public Configuration() {
defaultMaxDataSize(), DEFAULT_PROCESSING_THREADS);
}

@JsonCreator
public Configuration(Integer maxTaskCount, Integer maxTaskRetries, Long taskRetryDelayBase,
Long maxTaskDataSize, Integer processingThreads) {
this.maxTaskCount = maxTaskCount;
Expand Down

0 comments on commit 6426684

Please sign in to comment.