All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.voovan.docker.message.service.atom.RestartPolicy Maven / Gradle / Ivy

Go to download

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.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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy