public final class ServerCursor extends Object implements Serializable
Constructor and Description |
---|
ServerCursor(long id,
ServerAddress address)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ServerAddress |
getAddress()
Gets the server address.
|
long |
getId()
Gets the cursor id that the server uses to uniquely identify the cursor.
|
int |
hashCode() |
String |
toString() |
public ServerCursor(long id, ServerAddress address)
id
- the non-null cursor idaddress
- the non-null server address that has the cursorpublic long getId()
public ServerAddress getAddress()