com.github.dockerjava.api.async.ResultCallback 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.async;
import java.io.Closeable;
/**
* Result callback
*/
public interface ResultCallback extends Closeable {
/**
* Called when the async processing starts respectively when the response arrives from the server. The passed {@link Closeable} can be
* used to close/interrupt the processing.
*/
void onStart(Closeable closeable);
/** Called when an async result event occurs */
void onNext(A_RES_T object);
/** Called when an exception occurs while processing */
void onError(Throwable throwable);
/** Called when processing was finished either by reaching the end or by aborting it */
void onComplete();
}