Class EventStream

java.lang.Object
com.google.common.collect.UnmodifiableIterator<Event>
com.google.common.collect.AbstractIterator<Event>
com.spotify.docker.client.EventStream
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<Event>

public class EventStream extends com.google.common.collect.AbstractIterator<Event> implements Closeable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final EventReader
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventStream(org.apache.http.client.methods.CloseableHttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected Event
     

    Methods inherited from class com.google.common.collect.AbstractIterator

    endOfData, hasNext, next, peek

    Methods inherited from class com.google.common.collect.UnmodifiableIterator

    remove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Field Details

  • Constructor Details

    • EventStream

      EventStream(org.apache.http.client.methods.CloseableHttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • computeNext

      protected Event computeNext()
      Specified by:
      computeNext in class com.google.common.collect.AbstractIterator<Event>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable