Class: Mongo::Server::ConnectionCommon
- Inherits:
-
Object
- Object
- Mongo::Server::ConnectionCommon
- Defined in:
- lib/mongo/server/connection_common.rb
Overview
Note:
Although methods of this module are part of the public API, the fact that these methods are defined on this module and not on the classes which include this module is not part of the public API.
Common methods used by both monitoring and non-monitoring connections.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#compressor ⇒ String | nil
readonly
The compressor negotiated during the handshake for this connection, if any.
Instance Attribute Details
#compressor ⇒ String | nil (readonly)
The compressor negotiated during the handshake for this connection, if any.
This attribute is nil for connections that haven’t completed the handshake yet, and for connections that negotiated no compression.
34 35 36 |
# File 'lib/mongo/server/connection_common.rb', line 34 def compressor @compressor end |