Class EmptyMongoCursor<TResult>
java.lang.Object
fr.gouv.vitam.common.database.server.mongodb.EmptyMongoCursor<TResult>
- Type Parameters:
TResult- The type of documents the cursor is supposed to contain
- All Implemented Interfaces:
com.mongodb.client.MongoCursor<TResult>,Closeable,AutoCloseable,Iterator<TResult>
public class EmptyMongoCursor<TResult>
extends Object
implements com.mongodb.client.MongoCursor<TResult>
Empty mongo cursor implementation to use in place of a real MongoCursor
-
Constructor Details
-
EmptyMongoCursor
public EmptyMongoCursor()the constructor
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacecom.mongodb.client.MongoCursor<TResult>
-
hasNext
public boolean hasNext() -
next
-
available
public int available()- Specified by:
availablein interfacecom.mongodb.client.MongoCursor<TResult>
-
tryNext
- Specified by:
tryNextin interfacecom.mongodb.client.MongoCursor<TResult>
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()- Specified by:
getServerCursorin interfacecom.mongodb.client.MongoCursor<TResult>
-
getServerAddress
public com.mongodb.ServerAddress getServerAddress()- Specified by:
getServerAddressin interfacecom.mongodb.client.MongoCursor<TResult>
-