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>
,java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<TResult>
public class EmptyMongoCursor<TResult> extends java.lang.Object implements com.mongodb.client.MongoCursor<TResult>
Empty mongo cursor implementation to use in place of a real MongoCursor
-
-
Constructor Summary
Constructors Constructor Description EmptyMongoCursor()
the constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
com.mongodb.ServerAddress
getServerAddress()
com.mongodb.ServerCursor
getServerCursor()
boolean
hasNext()
TResult
next()
TResult
tryNext()
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacecom.mongodb.client.MongoCursor<TResult>
-
hasNext
public boolean hasNext()
-
next
public TResult next()
-
available
public int available()
- Specified by:
available
in interfacecom.mongodb.client.MongoCursor<TResult>
-
tryNext
public 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>
-
-