Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Field and Description |
---|---|
private ServerType |
MessageSettings.serverType |
private ServerType |
MessageSettings.Builder.serverType |
private ServerType |
ConnectionDescription.serverType |
private ServerType |
ServerDescription.type |
private ServerType |
ServerDescription.Builder.type |
Modifier and Type | Method and Description |
---|---|
ServerType |
MessageSettings.getServerType() |
ServerType |
ConnectionDescription.getServerType()
Gets the server type.
|
private static ServerType |
DescriptionHelper.getServerType(BsonDocument isMasterResult) |
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(java.lang.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 |
---|---|
MessageSettings.Builder |
MessageSettings.Builder.serverType(ServerType serverType) |
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.
|
ConnectionDescription(ConnectionId connectionId,
ServerVersion serverVersion,
ServerType serverType,
int maxBatchCount,
int maxDocumentSize,
int maxMessageSize,
java.util.List<java.lang.String> compressors)
Construct an instance.
|