@Immutable public final class ConnectionId extends java.lang.Object
Contains a locally created id and if available the MongoDB server created connection id
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getLocalValue()
Gets the locally created id value for the connection
|
ServerId |
getServerId()
Gets the server id.
|
java.lang.Integer |
getServerValue()
Gets the server generated id value for the connection or null if not set.
|
int |
hashCode() |
java.lang.String |
toString() |
public ServerId getServerId()
public int getLocalValue()
public java.lang.Integer getServerValue()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object