Package com.spotify.docker.client
Class ProgressStream
java.lang.Object
com.spotify.docker.client.ProgressStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.databind.MappingIterator<ProgressMessage> private final InputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanhasNextMessage(String method, URI uri) nextMessage(String method, URI uri) voidtail(ProgressHandler handler, String method, URI uri)
-
Field Details
-
stream
-
iterator
-
-
Constructor Details
-
ProgressStream
ProgressStream(InputStream stream) throws IOException - Throws:
IOException
-
-
Method Details
-
hasNextMessage
- Throws:
DockerException
-
nextMessage
- Throws:
DockerException
-
tail
public void tail(ProgressHandler handler, String method, URI uri) throws DockerException, InterruptedException - Throws:
DockerExceptionInterruptedException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-