Annotation Type CompressionHint


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

    This is just a hint and it's ultimately the EJB 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 compressionLevel
      The compression level to be used while compressing the data.
      boolean compressRequest
      True if the request data of an EJB invocation should be compressed.
      boolean compressResponse
      True if the response data of an EJB invocation should be compressed.
    • Element Detail

      • compressRequest

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

        boolean compressResponse
        True if the response data of an EJB 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