Compression methods
- Last Updated: July 22, 2025
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
You can compress the messages exchanged between the Java Open client and an
application server. The methods listed in the following table provide compression
functionality to the Java Open Client. These methods apply to the RuntimeProperties class and Connection class.
| Method | Description |
|---|---|
getCompressionEnabled() |
Gets PROGRESS.Session.EnableCompressionReturns TRUE if getCompressionEnabled() is
called. The default value is FALSE. |
getCompressionLevel() |
Gets PROGRESS.Session.CompressionLevel |
getCompressionThreshold() |
Gets PROGRESS.Session.CompressionThreshold |
setCompressionEnabled() |
Sets PROGRESS.Session.EnableCompression |
setCompressionLevel() |
Sets PROGRESS.Session.CompressionLevel |
setCompressionThreshold() |
Sets PROGRESS.Session.CompressionThreshold |
The following example shows the creation of a new Connection object, which is compression enabled with a default compression level
of 1 and a minimum message size of 300 bytes.
|
The following example shows the creation of a new RuntimeProperties object, which is compression enabled. The compression level is
set to 5, and the message size is set to 550 bytes.
|