Package com.mongodb
Class ServerCursor
- java.lang.Object
 - 
- com.mongodb.ServerCursor
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
@Deprecated(since="2021-05-27") public final class ServerCursor extends java.lang.Object implements java.io.SerializableDeprecated.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:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ServerCursor(long id, ServerAddress address)Deprecated.Construct an instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.ServerAddressgetAddress()Deprecated.Gets the server address.longgetId()Deprecated.Gets the cursor id that the server uses to uniquely identify the cursor.inthashCode()Deprecated.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Constructor Detail
- 
ServerCursor
public ServerCursor(long id, ServerAddress address)Deprecated.Construct an instance.- Parameters:
 id- the non-null cursor idaddress- the non-null server address that has the cursor
 
 - 
 
- 
Method Detail
- 
getId
public long getId()
Deprecated.Gets the cursor id that the server uses to uniquely identify the cursor.- Returns:
 - the cursor id
 
 
- 
getAddress
public ServerAddress getAddress()
Deprecated.Gets the server address.- Returns:
 - the server address
 
 
- 
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
Deprecated.- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -