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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacecom.mongodb.client.MongoCursor<TResult>
-
hasNext
public boolean hasNext() -
next
-
available
public int available()- Specified by:
available
in interfacecom.mongodb.client.MongoCursor<TResult>
-
tryNext
- Specified by:
tryNext
in interfacecom.mongodb.client.MongoCursor<TResult>
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()- Specified by:
getServerCursor
in interfacecom.mongodb.client.MongoCursor<TResult>
-
getServerAddress
public com.mongodb.ServerAddress getServerAddress()- Specified by:
getServerAddress
in interfacecom.mongodb.client.MongoCursor<TResult>
-