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.ObjectMapperobjectMapperprivate com.fasterxml.jackson.core.JsonParserparserprivate org.apache.http.client.methods.CloseableHttpResponseresponse
-
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 voidclose()EventnextMessage()
-
-
-
Method Detail
-
nextMessage
public Event nextMessage() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-