Class VitamMongoCursor<T>

  • All Implemented Interfaces:
    com.mongodb.client.MongoCursor, java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator

    public class VitamMongoCursor<T>
    extends java.lang.Object
    implements com.mongodb.client.MongoCursor
    • Constructor Summary

      Constructors 
      Constructor Description
      VitamMongoCursor​(com.mongodb.client.MongoCursor<T> cursor)  
      VitamMongoCursor​(com.mongodb.client.MongoCursor<T> cursor, long total, java.lang.String scrollId)  
    • Constructor Detail

      • VitamMongoCursor

        public VitamMongoCursor​(com.mongodb.client.MongoCursor<T> cursor,
                                long total,
                                java.lang.String scrollId)
      • VitamMongoCursor

        public VitamMongoCursor​(com.mongodb.client.MongoCursor<T> cursor)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface com.mongodb.client.MongoCursor<T>
      • hasNext

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

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
        Specified by:
        next in interface com.mongodb.client.MongoCursor<T>
      • tryNext

        public T tryNext()
        Specified by:
        tryNext in interface com.mongodb.client.MongoCursor<T>
      • getServerCursor

        public com.mongodb.ServerCursor getServerCursor()
        Specified by:
        getServerCursor in interface com.mongodb.client.MongoCursor<T>
      • getServerAddress

        public com.mongodb.ServerAddress getServerAddress()
        Specified by:
        getServerAddress in interface com.mongodb.client.MongoCursor<T>
      • getTotal

        public long getTotal()
      • getScrollId

        public java.lang.String getScrollId()