Interface MongoCursorDecorator<T>

All Superinterfaces:
java.lang.AutoCloseable, ChangockIterator<T>, java.io.Closeable, java.util.Iterator<T>, com.mongodb.client.MongoCursor<T>
All Known Subinterfaces:
MongoChangeStreamCursorDecorator<T>
All Known Implementing Classes:
MongoChangeStreamCursorDecoratorImpl, MongoCursorDecoratorImpl

public interface MongoCursorDecorator<T>
extends com.mongodb.client.MongoCursor<T>, ChangockIterator<T>
  • Method Summary

    Modifier and Type Method Description
    default void close()  
    com.mongodb.client.MongoCursor<T> getImpl()  
    io.changock.driver.api.lock.guard.invoker.LockGuardInvoker getInvoker()  
    default com.mongodb.ServerAddress getServerAddress()  
    default com.mongodb.ServerCursor getServerCursor()  
    default boolean hasNext()  
    default T next()  
    default T tryNext()  

    Methods inherited from interface com.github.cloudyrock.mongock.driver.mongodb.sync.v4.decorator.ChangockIterator

    forEachRemaining, remove
  • Method Details

    • getImpl

      com.mongodb.client.MongoCursor<T> getImpl()
      Specified by:
      getImpl in interface ChangockIterator<T>
    • getInvoker

      io.changock.driver.api.lock.guard.invoker.LockGuardInvoker getInvoker()
      Specified by:
      getInvoker in interface ChangockIterator<T>
    • close

      default 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

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

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

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

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

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