Package com.mongodb
Class ServerCursor
java.lang.Object
com.mongodb.ServerCursor
- All Implemented Interfaces:
Serializable
@Deprecated(since="2021-05-27")
public final class ServerCursor
extends Object
implements Serializable
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A class representing a cursor id associated with a server address (host/port) Since cursor ids are only useful in the context of a single
MongoDB server process, you need both values to do a getMore on the cursor.
- Since:
- 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerCursor
(long id, ServerAddress address) Deprecated.Construct an instance. -
Method Summary
-
Constructor Details
-
ServerCursor
Deprecated.Construct an instance.- Parameters:
id
- the non-null cursor idaddress
- the non-null server address that has the cursor
-
-
Method Details
-
getId
public long getId()Deprecated.Gets the cursor id that the server uses to uniquely identify the cursor.- Returns:
- the cursor id
-
getAddress
Deprecated.Gets the server address.- Returns:
- the server address
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-