Package com.mongodb
Interface Cursor
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,java.util.Iterator<DBObject>
- All Known Implementing Classes:
DBCursor
@Deprecated(since="2021-05-27") public interface Cursor extends java.util.Iterator<DBObject>, java.io.Closeable
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Interface for providing consistent behaviour between different Cursor implementations.- Since:
- 2.12
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Terminates this cursor on the server.longgetCursorId()Deprecated.Gets the server's identifier for this Cursor.ServerAddressgetServerAddress()Deprecated.Gets the address of the server that data is pulled from.
-
-
-
Method Detail
-
getCursorId
long getCursorId()
Deprecated.Gets the server's identifier for this Cursor.- Returns:
- the cursor's ID, or 0 if there is no active cursor.
-
getServerAddress
ServerAddress getServerAddress()
Deprecated.Gets the address of the server that data is pulled from. Note that this information may not be available until hasNext() or next() is called.- Returns:
- the address of the server that data is pulled from
-
close
void close()
Deprecated.Terminates this cursor on the server.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-