Package com.mongodb
Class MongoCompressor
java.lang.Object
com.mongodb.MongoCompressor
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Metadata describing a compressor to use for sending and receiving messages to a MongoDB server.
- Since:
- 3.6
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoCompressor
Deprecated.Create an instance for snappy compression.static MongoCompressor
Deprecated.Create an instance for zlib compression.static MongoCompressor
Deprecated.Create an instance for zstd compression.boolean
Deprecated.getName()
Deprecated.Gets the name of the compressor.<T> T
getProperty
(String key, T defaultValue) Deprecated.Gets the property with the given key.<T> T
getPropertyNonNull
(String key, T defaultValue) Deprecated.Gets the property with the given key.int
hashCode()
Deprecated.toString()
Deprecated.<T> MongoCompressor
withProperty
(String key, T value) Deprecated.Creates a new compressor from this compressor with the given property added to it.
-
Field Details
-
LEVEL
Deprecated.The property key for defining the compression level.- See Also:
-
-
Method Details
-
createSnappyCompressor
Deprecated.Create an instance for snappy compression.- Returns:
- A compressor based on the snappy compression algorithm
-
createZlibCompressor
Deprecated.Create an instance for zlib compression.- Returns:
- A compressor based on the zlib compression algorithm
-
createZstdCompressor
Deprecated.Create an instance for zstd compression.- Returns:
- A compressor based on the zstd compression algorithm
-
getName
Deprecated.Gets the name of the compressor.- Returns:
- the non-null compressor name
-
getProperty
Deprecated.Gets the property with the given key.- Type Parameters:
T
- the property value type- Parameters:
key
- the keydefaultValue
- the default value- Returns:
- the property value, or the default value if the property is not defined
-
getPropertyNonNull
Deprecated.Gets the property with the given key.- Type Parameters:
T
- the property value type- Parameters:
key
- the keydefaultValue
- the default value- Returns:
- the property value, or the default value if the property is not defined
- Throws:
IllegalArgumentException
- if the value and default value are null- Since:
- 3.7
-
withProperty
Deprecated.Creates a new compressor from this compressor with the given property added to it.- Type Parameters:
T
- the property value type- Parameters:
key
- the property keyvalue
- the property value- Returns:
- the new compressor
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-