Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Method and Description |
---|---|
ServerType |
ConnectionDescription.getServerType()
Gets the server type.
|
ServerType |
ServerDescription.getType()
Gets the type of the server, for example whether it's a standalone or in a replica set.
|
static ServerType |
ServerType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerType[] |
ServerType.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.type(ServerType type)
Sets the type of the server, for example whether it's a standalone or in a replica set.
|
Constructor and Description |
---|
ConnectionDescription(ConnectionId connectionId,
ServerVersion serverVersion,
ServerType serverType,
int maxBatchCount,
int maxDocumentSize,
int maxMessageSize)
Construct an instance.
|
Copyright © 2016. All Rights Reserved.