Class EventStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<Event>

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

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

      Constructors 
      Constructor Description
      EventStream​(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()  
      protected Event computeNext()  
      • 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
    • Constructor Detail

      • EventStream

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

      • computeNext

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

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable