com.github.dockerjava.api.command.RestartContainerCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.docker-java
Show all versions of org.apache.servicemix.bundles.docker-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.github.dockerjava.api.command;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import com.github.dockerjava.api.exception.NotFoundException;
/**
* Restart a running container.
*
* @param timeout
* - Timeout in seconds before killing the container. Defaults to 10 seconds.
*
*/
public interface RestartContainerCmd extends SyncDockerCmd {
@CheckForNull
String getContainerId();
@CheckForNull
Integer getTimeout();
RestartContainerCmd withContainerId(@Nonnull String containerId);
RestartContainerCmd withtTimeout(Integer timeout);
/**
* @throws NotFoundException
* No such container
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec {
}
}