parent
5c2166a019
commit
3d7e4766f7
|
@ -6,42 +6,11 @@ import org.hibernate.validator.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.Min;
|
import javax.validation.constraints.Min;
|
||||||
|
|
||||||
public class PushConfiguration {
|
public class PushConfiguration {
|
||||||
@JsonProperty
|
|
||||||
@NotEmpty
|
|
||||||
private String host;
|
|
||||||
|
|
||||||
@JsonProperty
|
|
||||||
@Min(1)
|
|
||||||
private int port;
|
|
||||||
|
|
||||||
@JsonProperty
|
|
||||||
@NotEmpty
|
|
||||||
private String username;
|
|
||||||
|
|
||||||
@JsonProperty
|
|
||||||
@NotEmpty
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
@Min(0)
|
@Min(0)
|
||||||
private int queueSize = 200;
|
private int queueSize = 200;
|
||||||
|
|
||||||
public String getHost() {
|
|
||||||
return host;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPort() {
|
|
||||||
return port;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUsername() {
|
|
||||||
return username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getQueueSize() {
|
public int getQueueSize() {
|
||||||
return queueSize;
|
return queueSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue