org.voovan.docker.message.service.atom.RestartPolicy Maven / Gradle / Ivy
Show all versions of JDocker Show documentation
package org.voovan.docker.message.service.atom;
/**
*
* @author helyho
*
* DockerFly Framework.
* WebSite: https://git.oschina.net/helyho/JDocker
* Licence: Apache v2 License
*/
public class RestartPolicy {
private String condition; // none/on-failure/any
private Long delay;
private Integer maxAttempts;
private Integer window;
public RestartPolicy() {
condition = "on-failure";
maxAttempts = 0;
delay = null;
}
public void setCondition(String condition) {
this.condition = condition;
}
public String getCondition() {
return this.condition;
}
public void setDelay(Long delay) {
this.delay = delay;
}
public Long getDelay() {
return this.delay;
}
public void setMaxAttempts(Integer maxAttempts) {
this.maxAttempts = maxAttempts;
}
public Integer getMaxAttempts() {
return this.maxAttempts;
}
public Integer getWindow() {
return window;
}
public void setWindow(Integer window) {
this.window = window;
}
}