com.github.dockerjava.api.command.WaitContainerCmd 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.async.ResultCallback;
import com.github.dockerjava.api.exception.NotFoundException;
import com.github.dockerjava.api.model.WaitResponse;
/**
* Wait a container
*
* Block until container stops, then returns its exit code
*/
public interface WaitContainerCmd extends AsyncDockerCmd {
@CheckForNull
String getContainerId();
WaitContainerCmd withContainerId(@Nonnull String containerId);
/**
* @throws NotFoundException
* container not found
*/
@Override
> T exec(T resultCallback);
interface Exec extends DockerCmdAsyncExec {
}
}