Class AbstractDeflaterPostProcessor
java.lang.Object
org.springframework.amqp.support.postprocessor.AbstractCompressingPostProcessor
org.springframework.amqp.support.postprocessor.AbstractDeflaterPostProcessor
- All Implemented Interfaces:
MessagePostProcessor
,Ordered
- Direct Known Subclasses:
DeflaterPostProcessor
,GZipPostProcessor
,ZipPostProcessor
Base class for post processors based on
Deflater
.- Since:
- 1.4.2
- Author:
- Gary Russell
-
Field Summary
Fields inherited from class org.springframework.amqp.support.postprocessor.AbstractCompressingPostProcessor
logger
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.amqp.support.postprocessor.AbstractCompressingPostProcessor
getCompressorStream, getEncoding, getOrder, postProcessMessage, setCopyProperties, setEncodingDelimiter, setOrder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.amqp.core.MessagePostProcessor
postProcessMessage, postProcessMessage
-
Constructor Details
-
AbstractDeflaterPostProcessor
public AbstractDeflaterPostProcessor() -
AbstractDeflaterPostProcessor
public AbstractDeflaterPostProcessor(boolean autoDecompress)
-
-
Method Details
-
setLevel
public void setLevel(int level) Set the deflater compression level.- Parameters:
level
- the level (defaultDeflater.BEST_SPEED
- See Also:
-
getLevel
public int getLevel()Get the deflater compression level.- Returns:
- the level.
-