Package com.spotify.docker.client
Class EventReader
- java.lang.Object
-
- com.spotify.docker.client.EventReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class EventReader extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMapper
objectMapper
private com.fasterxml.jackson.core.JsonParser
parser
private org.apache.http.client.methods.CloseableHttpResponse
response
-
Constructor Summary
Constructors Constructor Description EventReader(org.apache.http.client.methods.CloseableHttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Event
nextMessage()
-
-
-
Method Detail
-
nextMessage
public Event nextMessage() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-