JBoss EJB client 2.0.0.Beta4

org.jboss.ejb.client.annotation
Annotation Type CompressionHint


@Target(value={METHOD,TYPE})
@Retention(value=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.


Optional Element Summary
 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.
 

compressRequest

public abstract boolean compressRequest
True if the request data of an EJB invocation should be compressed. False otherwise. By default this is true.

Default:
true

compressResponse

public abstract boolean compressResponse
True if the response data of an EJB invocation should be compressed. False otherwise. By default this is true.

Default:
true

compressionLevel

public abstract 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

JBoss EJB client 2.0.0.Beta4

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.