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 TypeMethodDescriptionvoid
close()
boolean
hasNextMessage
(String method, URI uri) nextMessage
(String method, URI uri) void
tail
(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:
DockerException
InterruptedException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-