Package com.mongodb.event
Class ConnectionCheckOutFailedEvent
java.lang.Object
com.mongodb.event.ConnectionCheckOutFailedEvent
An event for when checking out a connection fails.
- Since:
- 4.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
An enumeration of the reasons checking out a connection failed -
Constructor Summary
ConstructorDescriptionConnectionCheckOutFailedEvent
(ServerId serverId, ConnectionCheckOutFailedEvent.Reason reason) Construct an instance -
Method Summary
Modifier and TypeMethodDescriptionGets the reason for the check out failure.Gets the server idtoString()
-
Constructor Details
-
ConnectionCheckOutFailedEvent
public ConnectionCheckOutFailedEvent(ServerId serverId, ConnectionCheckOutFailedEvent.Reason reason) Construct an instance- Parameters:
serverId
- the server idreason
- the reason the connection check out failed
-
-
Method Details