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
|
Modifier and Type | Method and Description |
---|---|
ConnectionId |
ConnectionDescription.getConnectionId()
Gets the id of the connection.
|
Constructor and Description |
---|
ConnectionDescription(ConnectionId connectionId,
ServerVersion serverVersion,
ServerType serverType,
int maxBatchCount,
int maxDocumentSize,
int maxMessageSize)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
ConnectionId |
ConnectionRemovedEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionClosedEvent.getConnectionId()
Gets the identifier for this connection.
|
ConnectionId |
ServerHeartbeatStartedEvent.getConnectionId()
Gets the connectionId.
|
ConnectionId |
ConnectionCheckedInEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ServerHeartbeatFailedEvent.getConnectionId()
Gets the connectionId.
|
ConnectionId |
ServerHeartbeatSucceededEvent.getConnectionId()
Gets the connectionId.
|
ConnectionId |
ConnectionOpenedEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionCheckedOutEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionAddedEvent.getConnectionId()
Gets the connection id
|
ConnectionId |
ConnectionMessagesSentEvent.getConnectionId()
Deprecated.
Gets the identifier for this connection.
|
ConnectionId |
ConnectionMessageReceivedEvent.getConnectionId()
Deprecated.
Gets the identifier for this connection.
|
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)
Deprecated.
Constructs a new instance of the event.
|
ConnectionMessagesSentEvent(ConnectionId connectionId,
int requestId,
int size)
Deprecated.
Constructs a new instance of the event.
|
ConnectionOpenedEvent(ConnectionId connectionId)
Construct an instance
|
ConnectionRemovedEvent(ConnectionId connectionId)
Construct an instance
|
ServerHeartbeatFailedEvent(ConnectionId connectionId,
long elapsedTimeNanos,
Throwable throwable)
Construct an instance.
|
ServerHeartbeatStartedEvent(ConnectionId connectionId)
Construct an instance.
|
ServerHeartbeatSucceededEvent(ConnectionId connectionId,
BsonDocument reply,
long elapsedTimeNanos)
Construct an instance.
|
Copyright © 2017. All Rights Reserved.