Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Field and Description |
---|---|
private ServerConnectionState |
ServerDescription.state |
private ServerConnectionState |
ServerDescription.Builder.state |
Modifier and Type | Method and Description |
---|---|
ServerConnectionState |
ServerDescription.getState()
Gets the current state of the connection to the server.
|
static ServerConnectionState |
ServerConnectionState.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerConnectionState[] |
ServerConnectionState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ServerDescription.Builder |
ServerDescription.Builder.state(ServerConnectionState state)
The current state of the connection to the server.
|