forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make backoff calculation configurable
- Loading branch information
1 parent
55b91da
commit 0d45f77
Showing
9 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...e-source/src/main/java/org/opensearch/dataprepper/plugins/source/oteltrace/RetryInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.opensearch.dataprepper.plugins.source.oteltrace; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class RetryInfo { | ||
|
||
@JsonProperty("min_delay") | ||
private Integer minDelay; | ||
|
||
@JsonProperty("max_delay") | ||
private Integer maxDelay; | ||
|
||
// Jackson needs this constructor | ||
public RetryInfo() {} | ||
|
||
public RetryInfo(int minDelay, int maxDelay) { | ||
this.minDelay = minDelay; | ||
this.maxDelay = maxDelay; | ||
} | ||
|
||
public int getMinDelay() { | ||
return minDelay; | ||
} | ||
|
||
public void setMinDelay(Integer minDelay) { | ||
this.minDelay = minDelay; | ||
} | ||
|
||
public int getMaxDelay() { | ||
return maxDelay; | ||
} | ||
|
||
public void setMaxDelay(Integer maxDelay) { | ||
this.maxDelay = maxDelay; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters