Interface GzipInterceptorMBean
- All Known Implementing Classes:
GzipInterceptor
public interface GzipInterceptorMBean
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
int
int
getCount()
int
int
int
int
int
int
long
long
boolean
long
long
void
report()
void
reset()
void
setCompressionMinSize
(int compressionMinSize) Set the minimum payload size for compression to be enabled.void
setInterval
(int interval) If statistics collection is enabled, set the number of messages between statistics reports being written to the log.void
setOptionFlag
(int optionFlag) void
setStatsEnabled
(boolean statsEnabled) Configure whether the interceptor collects statistics.
-
Method Details
-
getOptionFlag
int getOptionFlag() -
setOptionFlag
void setOptionFlag(int optionFlag) -
getCompressionMinSize
int getCompressionMinSize()- Returns:
- the minimum payload size for compression to be enabled.
-
setCompressionMinSize
void setCompressionMinSize(int compressionMinSize) Set the minimum payload size for compression to be enabled. A value of zero or less means compression will always be used. If not explicitly configured, a default of zero will be used.- Parameters:
compressionMinSize
- The new minimum payload size
-
getStatsEnabled
boolean getStatsEnabled()- Returns:
true
if the interceptor is configured to collect statistics, otherwisefalse
-
setStatsEnabled
void setStatsEnabled(boolean statsEnabled) Configure whether the interceptor collects statistics.- Parameters:
statsEnabled
-true
to enable statistics collections, otherwisefalse
-
getInterval
int getInterval()- Returns:
- If statistics collection is enabled, the number of messages between statistics reports being written to the log.
-
setInterval
void setInterval(int interval) If statistics collection is enabled, set the number of messages between statistics reports being written to the log. A value of zero or less means no statistics reports are written.- Parameters:
interval
- The new interval between reports
-
getCount
int getCount() -
getCountCompressedTX
int getCountCompressedTX() -
getCountUncompressedTX
int getCountUncompressedTX() -
getCountCompressedRX
int getCountCompressedRX() -
getCountUncompressedRX
int getCountUncompressedRX() -
getSizeTX
long getSizeTX() -
getCompressedSizeTX
long getCompressedSizeTX() -
getUncompressedSizeTX
long getUncompressedSizeTX() -
getSizeRX
long getSizeRX() -
getCompressedSizeRX
long getCompressedSizeRX() -
getUncompressedSizeRX
long getUncompressedSizeRX() -
reset
void reset() -
report
void report()
-