![JAR search and dependency download from the Maven repository](/logo.png)
org.voovan.docker.message.container.atom.RestartPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JDocker Show documentation
Show all versions of JDocker Show documentation
By encapsulating the Docker API enables developers to use Java can quickly developed the control and operation of the Docker application, using streaming operation, simple and clear.
The newest version!
package org.voovan.docker.message.container.atom;
/**
*
* @author helyho
*
* DockerFly Framework.
* WebSite: https://git.oschina.net/helyho/JDocker
* Licence: Apache v2 License
*/
public class RestartPolicy {
private String name; // "always" "unless-stopped" "on-failure"
private Integer maximumRetryCount;
public RestartPolicy() {
name = "on-failure";
maximumRetryCount = 0;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getMaximumRetryCount() {
return maximumRetryCount;
}
public void setMaximumRetryCount(Integer maximumRetryCount) {
this.maximumRetryCount = maximumRetryCount;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy