Package org.jboss.ejb.client.annotation
Annotation Type 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 theEJBReceiver(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 intcompressionLevelThe compression level to be used while compressing the data.booleancompressRequestTrue if the request data of an Enterprise Bean invocation should be compressed.booleancompressResponseTrue if the response data of an Enterprise Bean invocation should be compressed.
-
-
-
-
compressionLevel
int compressionLevel
The compression level to be used while compressing the data. The values can be any of those that are supported byDeflater. By default the compression level isDeflater.DEFAULT_COMPRESSION- Default:
- -1
-
-