Class RecordDataSource<T>

  • Type Parameters:
    T - the data type
    All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.Iterator<T>

    public class RecordDataSource<T>
    extends java.lang.Object
    implements java.lang.AutoCloseable, java.util.Iterator<T>
    A simple wrapper around a PagedDataSource that iterates over single objects rather than a page at a time.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int getLastStatusCode()
      Returns the last HTTP Status Code received.
      java.time.ZonedDateTime getLastUpdated()
      Returns the latest updated date.
      boolean hasNext()  
      T next()  
      • 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, remove
    • Constructor Detail

    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • getLastUpdated

        public java.time.ZonedDateTime getLastUpdated()
        Returns the latest updated date.
        Returns:
        the latest updated date
      • getLastStatusCode

        public int getLastStatusCode()
        Returns the last HTTP Status Code received.
        Returns:
        the last HTTP Status Code received.
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>