Annotation Interface CompressionHint


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface CompressionHint
A hint to the Enterprise Beans client API that the data being communicated between the Enterprise Beans client and the server via the EJBReceiver(s) should be compressed.

This is just a hint and it's ultimately the Enterprise Beans client API implementation and/or the EJBReceiver(s) which decide whether or not the data will be compressed.

Author:
Jaikiran Pai
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The compression level to be used while compressing the data.
    boolean
    True if the request data of an Enterprise Bean invocation should be compressed.
    boolean
    True if the response data of an Enterprise Bean invocation should be compressed.
  • Element Details

    • compressRequest

      boolean compressRequest
      True if the request data of an Enterprise Bean invocation should be compressed. False otherwise. By default this is true.
      Default:
      true
    • compressResponse

      boolean compressResponse
      True if the response data of an Enterprise Bean invocation should be compressed. False otherwise. By default this is true.
      Default:
      true
    • compressionLevel

      int compressionLevel
      The compression level to be used while compressing the data. The values can be any of those that are supported by Deflater. By default the compression level is Deflater.DEFAULT_COMPRESSION
      Default:
      -1