Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.event |
This package contains cluster and connection event related classes
|
com.mongodb.management |
Contains classes for monitoring the server/driver via Java Management Extensions (JMX).
|
Modifier and Type | Field and Description |
---|---|
private ConnectionId |
ConnectionDescription.connectionId |
Modifier and Type | Method and Description |
---|---|
ConnectionId |
ConnectionDescription.getConnectionId()
Gets the id of the connection.
|
private ConnectionId |
InternalStreamConnection.getId() |
private ConnectionId |
DefaultConnectionPool.getId(InternalConnection internalConnection) |
(package private) ConnectionId |
ConnectionId.withServerValue(int serverValue) |
Modifier and Type | Method and Description |
---|---|
(package private) static ConnectionDescription |
DescriptionHelper.createConnectionDescription(ConnectionId connectionId,
BsonDocument isMasterResult,
BsonDocument buildInfoResult) |
(package private) ConnectionDescription |
ConnectionDescription.withConnectionId(ConnectionId connectionId) |
Constructor and Description |
---|
ConnectionDescription(ConnectionId connectionId,
ServerVersion serverVersion,
ServerType serverType,
int maxBatchCount,
int maxDocumentSize,
int maxMessageSize)
Construct an instance.
|
Modifier and Type | Field and Description |
---|---|
private ConnectionId |
ConnectionOpenedEvent.connectionId |
private ConnectionId |
ConnectionMessageReceivedEvent.connectionId |
private ConnectionId |
ServerHeartbeatSucceededEvent.connectionId |
private ConnectionId |
ConnectionAddedEvent.connectionId |
private ConnectionId |
ConnectionMessagesSentEvent.connectionId |
private ConnectionId |
ConnectionClosedEvent.connectionId |
private ConnectionId |
ConnectionCheckedInEvent.connectionId |
private ConnectionId |
ServerHeartbeatStartedEvent.connectionId |
private ConnectionId |
ConnectionCheckedOutEvent.connectionId |
private ConnectionId |
ConnectionRemovedEvent.connectionId |
private ConnectionId |
ServerHeartbeatFailedEvent.connectionId |
Modifier and Type | Method and Description |
---|---|
ConnectionId |
ConnectionOpenedEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionMessageReceivedEvent.getConnectionId()
Gets the identifier for this connection.
|
ConnectionId |
ServerHeartbeatSucceededEvent.getConnectionId()
Gets the connectionId.
|
ConnectionId |
ConnectionAddedEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionMessagesSentEvent.getConnectionId()
Gets the identifier for this connection.
|
ConnectionId |
ConnectionClosedEvent.getConnectionId()
Gets the identifier for this connection.
|
ConnectionId |
ConnectionCheckedInEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ServerHeartbeatStartedEvent.getConnectionId()
Gets the connectionId.
|
ConnectionId |
ConnectionCheckedOutEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionRemovedEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ServerHeartbeatFailedEvent.getConnectionId()
Gets the connectionId.
|
Constructor and Description |
---|
ConnectionAddedEvent(ConnectionId connectionId)
Construct an instance
|
ConnectionCheckedInEvent(ConnectionId connectionId)
Construct an instance
|
ConnectionCheckedOutEvent(ConnectionId connectionId)
Construct an instance
|
ConnectionClosedEvent(ConnectionId connectionId)
Constructs a new instance of the event.
|
ConnectionMessageReceivedEvent(ConnectionId connectionId,
int responseTo,
int size)
Constructs a new instance of the event.
|
ConnectionMessagesSentEvent(ConnectionId connectionId,
int requestId,
int size)
Constructs a new instance of the event.
|
ConnectionOpenedEvent(ConnectionId connectionId)
Construct an instance
|
ConnectionRemovedEvent(ConnectionId connectionId)
Construct an instance
|
ServerHeartbeatFailedEvent(ConnectionId connectionId,
long elapsedTimeNanos,
java.lang.Throwable throwable)
Construct an instance.
|
ServerHeartbeatStartedEvent(ConnectionId connectionId)
Construct an instance.
|
ServerHeartbeatSucceededEvent(ConnectionId connectionId,
BsonDocument reply,
long elapsedTimeNanos)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
private ConnectionPoolStatistics |
JMXConnectionPoolListener.getStatistics(ConnectionId connectionId) |