Package com.mongodb
Class MongoCompressor
- java.lang.Object
-
- com.mongodb.MongoCompressor
-
@Deprecated(since="2021-05-27") public final class MongoCompressor extends java.lang.ObjectDeprecated.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 Modifier and Type Field Description static java.lang.StringLEVELDeprecated.The property key for defining the compression level.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MongoCompressorcreateSnappyCompressor()Deprecated.Create an instance for snappy compression.static MongoCompressorcreateZlibCompressor()Deprecated.Create an instance for zlib compression.static MongoCompressorcreateZstdCompressor()Deprecated.Create an instance for zstd compression.booleanequals(java.lang.Object o)Deprecated.java.lang.StringgetName()Deprecated.Gets the name of the compressor.<T> TgetProperty(java.lang.String key, T defaultValue)Deprecated.Gets the property with the given key.<T> TgetPropertyNonNull(java.lang.String key, T defaultValue)Deprecated.Gets the property with the given key.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.<T> MongoCompressorwithProperty(java.lang.String key, T value)Deprecated.Creates a new compressor from this compressor with the given property added to it.
-
-
-
Field Detail
-
LEVEL
public static final java.lang.String LEVEL
Deprecated.The property key for defining the compression level.- See Also:
- Constant Field Values
-
-
Method Detail
-
createSnappyCompressor
public static MongoCompressor createSnappyCompressor()
Deprecated.Create an instance for snappy compression.- Returns:
- A compressor based on the snappy compression algorithm
-
createZlibCompressor
public static MongoCompressor createZlibCompressor()
Deprecated.Create an instance for zlib compression.- Returns:
- A compressor based on the zlib compression algorithm
-
createZstdCompressor
public static MongoCompressor createZstdCompressor()
Deprecated.Create an instance for zstd compression.- Returns:
- A compressor based on the zstd compression algorithm
-
getName
public java.lang.String getName()
Deprecated.Gets the name of the compressor.- Returns:
- the non-null compressor name
-
getProperty
@Nullable public <T> T getProperty(java.lang.String key, T defaultValue)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
public <T> T getPropertyNonNull(java.lang.String key, T defaultValue)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:
java.lang.IllegalArgumentException- if the value and default value are null- Since:
- 3.7
-
withProperty
public <T> MongoCompressor withProperty(java.lang.String key, T value)
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
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-