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 voidclose()com.mongodb.client.MongoCursor<T>getImpl()io.changock.driver.api.lock.guard.invoker.LockGuardInvokergetInvoker()default com.mongodb.ServerAddressgetServerAddress()default com.mongodb.ServerCursorgetServerCursor()default booleanhasNext()default Tnext()default TtryNext()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:
getImplin interfaceChangockIterator<T>
-
getInvoker
io.changock.driver.api.lock.guard.invoker.LockGuardInvoker getInvoker()- Specified by:
getInvokerin interfaceChangockIterator<T>
-
close
default void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacecom.mongodb.client.MongoCursor<T>
-
hasNext
default boolean hasNext()- Specified by:
hasNextin interfaceChangockIterator<T>- Specified by:
hasNextin interfacejava.util.Iterator<T>- Specified by:
hasNextin interfacecom.mongodb.client.MongoCursor<T>
-
next
- Specified by:
nextin interfaceChangockIterator<T>- Specified by:
nextin interfacejava.util.Iterator<T>- Specified by:
nextin interfacecom.mongodb.client.MongoCursor<T>
-
tryNext
- Specified by:
tryNextin interfacecom.mongodb.client.MongoCursor<T>
-
getServerCursor
default com.mongodb.ServerCursor getServerCursor()- Specified by:
getServerCursorin interfacecom.mongodb.client.MongoCursor<T>
-
getServerAddress
default com.mongodb.ServerAddress getServerAddress()- Specified by:
getServerAddressin interfacecom.mongodb.client.MongoCursor<T>
-