public class BuildImageResultCallback extends ResultCallbackTemplate<BuildImageResultCallback,BuildResponseItem>
ResultCallback.Adapter<A_RES_T>
Constructor and Description |
---|
BuildImageResultCallback() |
Modifier and Type | Method and Description |
---|---|
String |
awaitImageId()
Awaits the image id from the response stream.
|
String |
awaitImageId(long timeout,
TimeUnit timeUnit)
Awaits the image id from the response stream.
|
void |
onNext(BuildResponseItem item)
Called when an async result event occurs
|
awaitCompletion, awaitCompletion, awaitStarted, awaitStarted, close, onComplete, onError, onStart, throwFirstError
public void onNext(BuildResponseItem item)
ResultCallback
public String awaitImageId()
DockerClientException
- if the build fails.public String awaitImageId(long timeout, TimeUnit timeUnit)
DockerClientException
- if the build fails or the timeout occurs.Copyright © 2023. All rights reserved.