public final class ServerCursor
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private ServerAddress |
address |
private long |
id |
private static long |
serialVersionUID |
Constructor and Description |
---|
ServerCursor(long id,
ServerAddress address)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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() |
java.lang.String |
toString() |
private static final long serialVersionUID
private final long id
private final ServerAddress address
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()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object