com.github.dockerjava.core.command.AbstrAsyncDockerCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import static com.google.common.base.Preconditions.checkNotNull;
import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.command.AsyncDockerCmd;
import com.github.dockerjava.api.command.DockerCmdAsyncExec;
public abstract class AbstrAsyncDockerCmd, A_RES_T> implements
AsyncDockerCmd {
protected DockerCmdAsyncExec execution;
public AbstrAsyncDockerCmd(DockerCmdAsyncExec execution) {
checkNotNull(execution, "execution was not specified");
this.execution = execution;
}
@Override
public > T exec(T resultCallback) {
execution.exec((CMD_T) this, resultCallback);
return resultCallback;
}
@Override
public void close() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy