mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 15:16:47 +00:00
Make DynamoDBConfiguration more consistent.
This commit is contained in:
1 parent
3a17a7c98f
commit
1dceee3fa0
1 file changed
+7
-13
+7
-13
@@ -8,42 +8,36 @@ package org.whispersystems.textsecuregcm.configuration;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.time.Duration;
|
||||
|
||||
public class DynamoDbConfiguration {
|
||||
|
||||
@JsonProperty
|
||||
@NotBlank
|
||||
private String region;
|
||||
|
||||
@JsonProperty
|
||||
@NotBlank
|
||||
private String tableName;
|
||||
|
||||
@JsonProperty
|
||||
private String region;
|
||||
private String tableName;
|
||||
private Duration clientExecutionTimeout = Duration.ofSeconds(30);
|
||||
|
||||
@JsonProperty
|
||||
private Duration clientRequestTimeout = Duration.ofSeconds(10);
|
||||
private Duration clientRequestTimeout = Duration.ofSeconds(10);
|
||||
|
||||
@Valid
|
||||
@NotEmpty
|
||||
@JsonProperty
|
||||
public String getRegion() {
|
||||
return region;
|
||||
}
|
||||
|
||||
@Valid
|
||||
@NotEmpty
|
||||
@JsonProperty
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
public Duration getClientExecutionTimeout() {
|
||||
return clientExecutionTimeout;
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
public Duration getClientRequestTimeout() {
|
||||
return clientRequestTimeout;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user