com.fitbur.github.dockerjava.api.command.RestartContainerCmd Maven / Gradle / Ivy
package com.fitbur.github.dockerjava.api.com.fitburmand;
import com.fitbur.github.dockerjava.api.NotFoundException;
/**
* Restart a running container.
*
* @param timeout
* - Timeout in seconds before killing the container. Defaults to 10 seconds.
*
*/
public interface RestartContainerCmd extends SyncDockerCmd {
public String getContainerId();
public int getTimeout();
public RestartContainerCmd withContainerId(String containerId);
public RestartContainerCmd withtTimeout(int timeout);
/**
* @throws NotFoundException
* No such container
*/
@Override
public Void exec() throws NotFoundException;
public static interface Exec extends DockerCmdSyncExec {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy